~ubuntu-gr-webteam/ubuntu-gr-website/drupal6-site

« back to all changes in this revision

Viewing changes to sites/all/modules/date/date_popup/date_popup.install

  • Committer: Thanos Lefteris
  • Date: 2009-07-29 17:46:54 UTC
  • Revision ID: alefteris@gmail.com-20090729174654-pgfr1vtqw8ikvo5r
* Upgraded calendar module
* Upgraded commentrss module
* Upgraded date module
* Upgraded webfm module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
//$Id: date_popup.install,v 1.5.6.5 2009/02/16 23:46:08 karens Exp $
 
2
//$Id: date_popup.install,v 1.5.6.6 2009/07/29 10:53:38 karens Exp $
 
3
/**
 
4
 * Implementation of hook_requirements().
 
5
 * Added to be sure the Date API version matches this code so invalid
 
6
 * functions are not called.
 
7
 */
 
8
function date_popup_requirements($phase) {
 
9
  $requirements = array();
 
10
  $t = get_t();
 
11
  switch ($phase) {
 
12
    case 'runtime':
 
13
      if (!module_exists('jquery_ui')) {
 
14
        $requirements['date_popup_jquery_ui'] = array(
 
15
          'title' => $t('Date Popup requirements'),
 
16
          'value' => $t('The Date Popup module needs code added by the <a href="http://drupal.org/project/jquery_ui">jQuery UI module.</a> This is not yet a requirement, but soon will be, so you are encouraged to install that module as soon as possible. In the meantime, a version of the needed code is included here.'),
 
17
          'severity' => REQUIREMENT_WARNING,
 
18
          );
 
19
      }
 
20
      break;
 
21
  }
 
22
  return $requirements;
 
23
}
 
24
 
3
25
/**
4
26
 * Implementation of hook_install().
5
27
 */