| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * Install file for jQuery Update. 6 */ 7 8 /** 9 * Implementation of hook_requirements(). 10 */ 11 function jquery_update_requirements($phase) { 12 $requirements = array(); 13 $t = get_t(); 14 15 if ($phase == 'runtime') { 16 $requirements['jquery_update'] = array( 17 'title' => $t('jQuery Update'), 18 'severity' => REQUIREMENT_OK, 19 'value' => jquery_update_get_version(), 20 ); 21 } 22 23 return $requirements; 24 } 25 26 /** 27 * Implementation of hook_install(). 28 */ 29 function jquery_update_install() { 30 // Set the module's weight high so that it runs after other modules. 31 db_query("UPDATE {system} SET weight = 99 WHERE name = 'jquery_update' and type = 'module'"); 32 } 33 34 /** 35 * Set module's weight high so that it runs after other modules. 36 */ 37 function jquery_update_update_6100() { 38 $ret = array(); 39 40 $ret[] = update_sql("UPDATE {system} SET weight = 99 WHERE name = 'jquery_update' and type = 'module'"); 41 42 return $ret; 43 } 44 45 /** 46 * The packed version of jQuery is no longer distributed. If that is the chosen 47 * version update to minified. 48 */ 49 function jquery_update_update_6200() { 50 $ret = array(); 51 52 if (variable_get('jquery_update_compression_type', 'min') == 'pack') { 53 variable_set('jquery_update_compression_type', 'min'); 54 } 55 56 return $ret; 57 } 58 59 /** 60 * Implementation of hook_uninstall(). 61 */ 62 function jquery_update_uninstall() { 63 variable_del('jquery_update_replace'); 64 variable_del('jquery_update_compression_type'); 65 variable_del('jquery_update_jquery_version'); 66 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |