Mercurial > defr > drupal > core
diff 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 |
line wrap: on
line diff
--- a/modules/system/system.install Tue Dec 23 14:32:08 2008 +0100 +++ b/modules/system/system.install Tue Dec 23 14:32:19 2008 +0100 @@ -1,5 +1,5 @@ <?php -// $Id: system.install,v 1.238.2.3 2008/04/25 21:24:20 goba Exp $ +// $Id: system.install,v 1.238.2.5 2008/09/17 05:33:36 goba Exp $ /** * Test and report Drupal installation requirements. @@ -273,7 +273,7 @@ if (!module_exists('update')) { $requirements['update status'] = array( 'value' => $t('Not enabled'), - 'severity' => REQUIREMENT_ERROR, + 'severity' => REQUIREMENT_WARNING, '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'))), ); } @@ -676,16 +676,12 @@ 'default' => ''), 'load_functions' => array( '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.'), - 'type' => 'varchar', - 'length' => 255, - 'not null' => TRUE, - 'default' => ''), + 'type' => 'text', + 'not null' => TRUE,), 'to_arg_functions' => array( '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.'), - 'type' => 'varchar', - 'length' => 255, - 'not null' => TRUE, - 'default' => ''), + 'type' => 'text', + 'not null' => TRUE,), 'access_callback' => array( 'description' => t('The callback which determines the access to this router path. Defaults to user_access.'), 'type' => 'varchar', @@ -2512,6 +2508,18 @@ } /** +* Increase the size of the 'load_functions' and 'to_arg_functions' fields in table 'menu_router'. +*/ +function system_update_6048() { + $ret = array(); + db_change_field($ret, 'menu_router', 'load_functions', 'load_functions', array('type' => 'text', 'not null' => TRUE,)); + db_change_field($ret, 'menu_router', 'to_arg_functions', 'to_arg_functions', array('type' => 'text', 'not null' => TRUE,)); + + return $ret; +} + + +/** * @} End of "defgroup updates-5.x-to-6.x" * The next series of updates should start at 7000. */