Mercurial > defr > drupal > core
comparison modules/system/system.install @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | fff6d4c8c043 |
children | 3edae6ecd6c6 |
comparison
equal
deleted
inserted
replaced
10:6f15c9d74937 | 11:589fb7c02327 |
---|---|
1 <?php | 1 <?php |
2 // $Id: system.install,v 1.238.2.3 2008/04/25 21:24:20 goba Exp $ | 2 // $Id: system.install,v 1.238.2.5 2008/09/17 05:33:36 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * Test and report Drupal installation requirements. | 5 * Test and report Drupal installation requirements. |
6 * | 6 * |
7 * @param $phase | 7 * @param $phase |
271 // Check for update status module. | 271 // Check for update status module. |
272 if ($phase == 'runtime') { | 272 if ($phase == 'runtime') { |
273 if (!module_exists('update')) { | 273 if (!module_exists('update')) { |
274 $requirements['update status'] = array( | 274 $requirements['update status'] = array( |
275 'value' => $t('Not enabled'), | 275 'value' => $t('Not enabled'), |
276 'severity' => REQUIREMENT_ERROR, | 276 'severity' => REQUIREMENT_WARNING, |
277 'description' => $t('Update notifications are not enabled. It is <strong>highly recommended</strong> that you enable the update status module from the <a href="@module">module administration page</a> in order to stay up-to-date on new releases. For more information please read the <a href="@update">Update status handbook page</a>.', array('@update' => 'http://drupal.org/handbook/modules/update', '@module' => url('admin/build/modules'))), | 277 'description' => $t('Update notifications are not enabled. It is <strong>highly recommended</strong> that you enable the update status module from the <a href="@module">module administration page</a> in order to stay up-to-date on new releases. For more information please read the <a href="@update">Update status handbook page</a>.', array('@update' => 'http://drupal.org/handbook/modules/update', '@module' => url('admin/build/modules'))), |
278 ); | 278 ); |
279 } | 279 } |
280 else { | 280 else { |
281 $requirements['update status'] = array( | 281 $requirements['update status'] = array( |
674 'length' => 255, | 674 'length' => 255, |
675 'not null' => TRUE, | 675 'not null' => TRUE, |
676 'default' => ''), | 676 'default' => ''), |
677 'load_functions' => array( | 677 'load_functions' => array( |
678 'description' => t('A serialized array of function names (like node_load) to be called to load an object corresponding to a part of the current path.'), | 678 'description' => t('A serialized array of function names (like node_load) to be called to load an object corresponding to a part of the current path.'), |
679 'type' => 'varchar', | 679 'type' => 'text', |
680 'length' => 255, | 680 'not null' => TRUE,), |
681 'not null' => TRUE, | |
682 'default' => ''), | |
683 'to_arg_functions' => array( | 681 'to_arg_functions' => array( |
684 'description' => t('A serialized array of function names (like user_uid_optional_to_arg) to be called to replace a part of the router path with another string.'), | 682 'description' => t('A serialized array of function names (like user_uid_optional_to_arg) to be called to replace a part of the router path with another string.'), |
685 'type' => 'varchar', | 683 'type' => 'text', |
686 'length' => 255, | 684 'not null' => TRUE,), |
687 'not null' => TRUE, | |
688 'default' => ''), | |
689 'access_callback' => array( | 685 'access_callback' => array( |
690 'description' => t('The callback which determines the access to this router path. Defaults to user_access.'), | 686 'description' => t('The callback which determines the access to this router path. Defaults to user_access.'), |
691 'type' => 'varchar', | 687 'type' => 'varchar', |
692 'length' => 255, | 688 'length' => 255, |
693 'not null' => TRUE, | 689 'not null' => TRUE, |
2510 $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'system' AND delta = '0'"); | 2506 $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'system' AND delta = '0'"); |
2511 return $ret; | 2507 return $ret; |
2512 } | 2508 } |
2513 | 2509 |
2514 /** | 2510 /** |
2511 * Increase the size of the 'load_functions' and 'to_arg_functions' fields in table 'menu_router'. | |
2512 */ | |
2513 function system_update_6048() { | |
2514 $ret = array(); | |
2515 db_change_field($ret, 'menu_router', 'load_functions', 'load_functions', array('type' => 'text', 'not null' => TRUE,)); | |
2516 db_change_field($ret, 'menu_router', 'to_arg_functions', 'to_arg_functions', array('type' => 'text', 'not null' => TRUE,)); | |
2517 | |
2518 return $ret; | |
2519 } | |
2520 | |
2521 | |
2522 /** | |
2515 * @} End of "defgroup updates-5.x-to-6.x" | 2523 * @} End of "defgroup updates-5.x-to-6.x" |
2516 * The next series of updates should start at 7000. | 2524 * The next series of updates should start at 7000. |
2517 */ | 2525 */ |