? .DS_Store ? 270302_11_upload_type_namespace_conflict_D7.patch ? 270302_13_upload_type_namespace_conflict_D7.patch ? 270302_8_upload_type_namespace_conflict_D7.patch ? block_body_required_00.patch ? form_required_cursor_01.patch ? make_node_optional_00.patch ? password_colouring_00.patch ? modules/.DS_Store ? sites/.DS_Store ? sites/default/files ? sites/default/settings.php Index: includes/module.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/module.inc,v retrieving revision 1.139 diff -u -p -r1.139 module.inc --- includes/module.inc 22 Feb 2009 17:55:29 -0000 1.139 +++ includes/module.inc 13 Mar 2009 21:35:35 -0000 @@ -270,13 +270,6 @@ function module_enable($module_list) { foreach ($invoke_modules as $module) { module_invoke($module, 'enable'); - // Check if node_access table needs rebuilding. - // We check for the existence of node_access_needs_rebuild() since - // at install time, module_enable() could be called while node.module - // is not enabled yet. - if (drupal_function_exists('node_access_needs_rebuild') && !node_access_needs_rebuild() && module_hook($module, 'node_grants')) { - node_access_needs_rebuild(TRUE); - } } if (!empty($invoke_modules)) { @@ -296,11 +289,6 @@ function module_disable($module_list) { $invoke_modules = array(); foreach ($module_list as $module) { if (module_exists($module)) { - // Check if node_access table needs rebuilding. - if (!node_access_needs_rebuild() && module_hook($module, 'node_grants')) { - node_access_needs_rebuild(TRUE); - } - module_load_install($module); module_invoke($module, 'disable'); db_update('system') @@ -320,12 +308,8 @@ function module_disable($module_list) { module_list(TRUE); // Force to regenerate the stored list of hook implementations. registry_rebuild(); - } - - // If there remains no more node_access module, rebuilding will be - // straightforward, we can do it right now. - if (node_access_needs_rebuild() && count(module_implements('node_grants')) == 0) { - node_access_rebuild(); + // Rebuild the menu. + menu_rebuild(); } } Index: modules/blog/blog.info =================================================================== RCS file: /cvs/drupal/drupal/modules/blog/blog.info,v retrieving revision 1.10 diff -u -p -r1.10 blog.info --- modules/blog/blog.info 11 Oct 2008 02:32:36 -0000 1.10 +++ modules/blog/blog.info 13 Mar 2009 21:35:35 -0000 @@ -6,4 +6,4 @@ package = Core version = VERSION core = 7.x files[] = blog.module -files[] = blog.pages.inc +files[] = blog.pages.inc \ No newline at end of file Index: modules/node/node.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.admin.inc,v retrieving revision 1.41 diff -u -p -r1.41 node.admin.inc --- modules/node/node.admin.inc 26 Feb 2009 07:30:27 -0000 1.41 +++ modules/node/node.admin.inc 13 Mar 2009 21:35:36 -0000 @@ -7,6 +7,50 @@ */ /** + * Implementation of hook_form_alter(). + */ +function node_form_system_themes_form_alter(&$form, $form_state) { + $form['admin_theme']['node_admin_theme'] = array( + '#type' => 'checkbox', + '#title' => t('Use administration theme for content editing'), + '#description' => t('Use the administration theme when editing existing posts or creating new ones.'), + '#default_value' => variable_get('node_admin_theme', '0'), + ); +} + +/** + * Implementation of hook_modules_enabled(). + */ +function node_modules_enabled($modules) { + node_types_rebuild(); + foreach ($modules as $module) { + if (!node_access_needs_rebuild() && module_hook($module, 'node_grants')) { + node_access_needs_rebuild(TRUE); + } + } +} + +/** + * Implementation of hook_modules_disabled(). + */ +function node_modules_disabled($modules) { + if (!node_access_needs_rebuild()) { + $node_grants = array(); + foreach ($modules as $module) { + // Check if node_access table needs rebuilding. + if (module_hook($module, 'node_grants')) { + $node_grants = $module; + } + } + + // If there remains no more node_access module, rebuild permissions. + if (!empty($node_grants) && count(array_diff(module_implements('node_grants'), $node_grants)) == 0) { + node_access_rebuild(); + } + } +} + +/** * Menu callback; presents general node configuration options. */ function node_configure() { Index: modules/node/node.info =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.info,v retrieving revision 1.10 diff -u -p -r1.10 node.info --- modules/node/node.info 12 Oct 2008 01:23:04 -0000 1.10 +++ modules/node/node.info 13 Mar 2009 21:35:36 -0000 @@ -8,5 +8,4 @@ files[] = node.module files[] = content_types.inc files[] = node.admin.inc files[] = node.pages.inc -files[] = node.install -required = TRUE +files[] = node.install \ No newline at end of file Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.1028 diff -u -p -r1.1028 node.module --- modules/node/node.module 8 Mar 2009 04:25:04 -0000 1.1028 +++ modules/node/node.module 13 Mar 2009 21:35:36 -0000 @@ -542,8 +542,6 @@ function node_types_rebuild() { } _node_types_build(); - // This is required for proper menu items at node/add/type. - menu_rebuild(); } /** Index: modules/system/system.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v retrieving revision 1.130 diff -u -p -r1.130 system.admin.inc --- modules/system/system.admin.inc 9 Mar 2009 11:44:54 -0000 1.130 +++ modules/system/system.admin.inc 13 Mar 2009 21:35:37 -0000 @@ -7,6 +7,21 @@ */ /** + * Implementation of hook_modules_enabled(). + */ +function system_modules_enabled($modules) { + menu_rebuild(); +} + + +/** + * Implementation of hook_modules_disabled(). + */ +function system_modules_disabled($modules) { + menu_rebuild(); +} + +/** * Menu callback; Provide the administration overview page. */ function system_main_admin_page($arg = NULL) { @@ -215,12 +230,6 @@ function system_themes_form() { '#description' => t('Choose which theme the administration pages should display in. If you choose "Default theme" the administration pages will use the same theme as the rest of the site.'), '#default_value' => variable_get('admin_theme', 0), ); - $form['admin_theme']['node_admin_theme'] = array( - '#type' => 'checkbox', - '#title' => t('Use administration theme for content editing'), - '#description' => t('Use the administration theme when editing existing posts or creating new ones.'), - '#default_value' => variable_get('node_admin_theme', '0'), - ); $form['buttons']['submit'] = array( '#type' => 'submit', @@ -238,7 +247,6 @@ function system_themes_form() { * Process system_themes_form form submissions. */ function system_themes_form_submit($form, &$form_state) { - // Store list of previously enabled themes and disable all themes $old_theme_list = $new_theme_list = array(); foreach (list_themes() as $theme) { @@ -573,7 +581,6 @@ function system_modules($form_state = ar // Clear all caches. registry_rebuild(); drupal_theme_rebuild(); - node_types_rebuild(); cache_clear_all('schema', 'cache'); // Get current list of modules. $files = module_rebuild_cache(); Index: modules/taxonomy/taxonomy.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.admin.inc,v retrieving revision 1.46 diff -u -p -r1.46 taxonomy.admin.inc --- modules/taxonomy/taxonomy.admin.inc 24 Feb 2009 16:48:18 -0000 1.46 +++ modules/taxonomy/taxonomy.admin.inc 13 Mar 2009 21:35:38 -0000 @@ -141,13 +141,6 @@ function taxonomy_form_vocabulary(&$form '#default_value' => $edit['description'], '#description' => t('Description of the vocabulary; can be used by modules.'), ); - $form['nodes'] = array( - '#type' => 'checkboxes', - '#title' => t('Content types'), - '#default_value' => $edit['nodes'], - '#options' => array_map('check_plain', node_get_types('names')), - '#description' => t('Select content types to categorize using this vocabulary.'), - ); $form['settings'] = array( '#type' => 'fieldset', '#title' => t('Settings'), Index: modules/taxonomy/taxonomy.info =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.info,v retrieving revision 1.8 diff -u -p -r1.8 taxonomy.info --- modules/taxonomy/taxonomy.info 11 Oct 2008 02:33:06 -0000 1.8 +++ modules/taxonomy/taxonomy.info 13 Mar 2009 21:35:38 -0000 @@ -8,3 +8,4 @@ files[] = taxonomy.module files[] = taxonomy.admin.inc files[] = taxonomy.pages.inc files[] = taxonomy.install +dependencies[] = node \ No newline at end of file