Projet

Général

Profil

Paste
Télécharger (685 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / flexslider / flexslider_example / flexslider_example.install @ 87dbc3bf

1
<?php
2

    
3
/**
4
 * @file
5
 * Install tasks for flexslider_example
6
 *
7
 * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
8
 */
9

    
10
/**
11
 * Implements hook_update_N().
12
 *
13
 * Checks for the Context module. Disables if not present.
14
 */
15
function flexslider_example_update_7001(&$sandbox) {
16
  if (!module_exists('context')) {
17
    module_disable(array('flexslider_example'));
18
      drupal_set_message(t('FlexSlider Example has been disabled as it now requires the !context module which is not currently available. Please download and enable the !context module and re-enable the FlexSlider Example module', array('!context' => l('Context', 'http://drupal.org/project/context'))), 'warning');
19
  }
20
}
21