stableversion-3.0
Last change
on this file since ef72343 was
177a560,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el directorio de modulos contribuidos de drupal
|
-
Propiedad mode establecida a
100755
|
File size:
1.2 KB
|
Línea | |
---|
1 | <?php |
---|
2 | // $Id: beautytips.install,v 1.2.2.4 2010/06/16 20:35:47 kleinmp Exp $ |
---|
3 | |
---|
4 | /** |
---|
5 | * @file |
---|
6 | * beautyTips install/uninstall hooks |
---|
7 | */ |
---|
8 | |
---|
9 | /** |
---|
10 | * Implementation of hook_install(). |
---|
11 | */ |
---|
12 | function beautytips_install() { |
---|
13 | // Display IE warning |
---|
14 | $path = drupal_get_path('module', 'beautytips'); |
---|
15 | $link_readme = l('BeautyTips Readme.txt', $path . '/README.txt'); |
---|
16 | if (!count(file_scan_directory($path . '/other_libs/excanvas_r3', 'excanvas.js', array('.', '..', 'CVS'), 0, FALSE))) { |
---|
17 | drupal_set_message(t('WARNING! In order for BeautyTips to function correctly in Internet Explorer, the Excanvas library needs to be added. (See the !readme_file for more information.)', array('!readme_file' => $link_readme)), $type = 'warning'); |
---|
18 | } |
---|
19 | |
---|
20 | // Set basic defaults |
---|
21 | variable_set('beautytips_defaults', array('cssStyles' => array())); |
---|
22 | } |
---|
23 | |
---|
24 | /** |
---|
25 | * Implementation of hook_uninstall(). |
---|
26 | */ |
---|
27 | function beautytips_uninstall() { |
---|
28 | $variables = array( |
---|
29 | 'beautytips_always_add', |
---|
30 | 'beautytips_added_selectors_array', |
---|
31 | 'beautytips_default_style', |
---|
32 | 'beautytips_custom_style', |
---|
33 | 'beautytips_defaults', |
---|
34 | ); |
---|
35 | foreach ($variables as $variable) { |
---|
36 | variable_del($variable); |
---|
37 | } |
---|
38 | |
---|
39 | cache_clear_all('beautytips:beautytips-styles', 'cache'); |
---|
40 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.