Révision c8740e19
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/highlightjs/highlight_js.install | ||
---|---|---|
14 | 14 |
$requirements = array(); |
15 | 15 |
|
16 | 16 |
switch ($phase) { |
17 |
|
|
18 |
case 'install': |
|
19 |
// Check to make sure at least Libraries 2.x is installed. |
|
20 |
if (!function_exists('libraries_detect')) { |
|
21 |
$requirements['highlightjs'] = array( |
|
22 |
'title' => t('Libraries'), |
|
23 |
'value' => t('1.x'), |
|
24 |
'description' => t('Highlight.js requires Libraries 7.x-2.0-alpha1 or higher.'), |
|
25 |
'severity' => REQUIREMENT_ERROR, |
|
26 |
); |
|
27 |
} |
|
28 |
break; |
|
29 |
|
|
30 | 17 |
case 'runtime': |
31 | 18 |
// Check to make sure the highlight.js library is available. |
32 | 19 |
$library = libraries_detect('highlightjs'); |
Formats disponibles : Unified diff
Weekly update of contrib modules