- Patch #287877 by dmitrig01: rename drupal_rebuild_code_registry() to registry_rebuild() for consistency.
parent
9cec02e472
commit
6c1068e48d
|
@ -1325,9 +1325,9 @@ function registry_mark_code($type, $name, $return = FALSE) {
|
|||
* Rescans all code in modules or includes directory, storing a mapping of
|
||||
* each function, file, and hook implementation in the database.
|
||||
*/
|
||||
function drupal_rebuild_code_registry() {
|
||||
function registry_rebuild() {
|
||||
require_once './includes/registry.inc';
|
||||
_drupal_rebuild_code_registry();
|
||||
_registry_rebuild();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -3548,11 +3548,11 @@ function drupal_flush_all_caches() {
|
|||
// Change query-strings on css/js files to enforce reload for all users.
|
||||
_drupal_flush_css_js();
|
||||
|
||||
drupal_rebuild_code_registry();
|
||||
registry_rebuild();
|
||||
drupal_clear_css_cache();
|
||||
drupal_clear_js_cache();
|
||||
system_theme_data();
|
||||
drupal_rebuild_theme_registry();
|
||||
drupal_theme_rebuild();
|
||||
menu_rebuild();
|
||||
node_types_rebuild();
|
||||
// Don't clear cache_form - in-progress form submissions may break.
|
||||
|
|
|
@ -284,7 +284,7 @@ function module_enable($module_list) {
|
|||
// Refresh the module list to include the new enabled module.
|
||||
module_list(TRUE, FALSE);
|
||||
// Force to regenerate the stored list of hook implementations.
|
||||
drupal_rebuild_code_registry();
|
||||
registry_rebuild();
|
||||
}
|
||||
|
||||
foreach ($invoke_modules as $module) {
|
||||
|
@ -325,7 +325,7 @@ function module_disable($module_list) {
|
|||
// Refresh the module list to exclude the disabled modules.
|
||||
module_list(TRUE, FALSE);
|
||||
// Force to regenerate the stored list of hook implementations.
|
||||
drupal_rebuild_code_registry();
|
||||
registry_rebuild();
|
||||
}
|
||||
|
||||
// If there remains no more node_access module, rebuilding will be
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @See drupal_rebuild_code_registry.
|
||||
* @see registry_rebuild.
|
||||
*/
|
||||
function _drupal_rebuild_code_registry() {
|
||||
function _registry_rebuild() {
|
||||
// Reset the resources cache.
|
||||
_registry_get_resource_name();
|
||||
// Get the list of files we are going to parse.
|
||||
|
|
|
@ -256,7 +256,7 @@ function _theme_save_registry($theme, $registry) {
|
|||
* when modules are added to the system, or when a dynamic system needs
|
||||
* to add more theme hooks.
|
||||
*/
|
||||
function drupal_rebuild_theme_registry() {
|
||||
function drupal_theme_rebuild() {
|
||||
cache_clear_all('theme_registry', 'cache', TRUE);
|
||||
}
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ function system_themes_form_submit($form, &$form_state) {
|
|||
|
||||
list_themes(TRUE);
|
||||
menu_rebuild();
|
||||
drupal_rebuild_theme_registry();
|
||||
drupal_theme_rebuild();
|
||||
drupal_set_message(t('The configuration options have been saved.'));
|
||||
$form_state['redirect'] = 'admin/build/themes';
|
||||
|
||||
|
@ -606,7 +606,7 @@ function _system_is_incompatible(&$incompatible, $files, $file) {
|
|||
*/
|
||||
function system_modules($form_state = array()) {
|
||||
// Clear all caches.
|
||||
drupal_rebuild_theme_registry();
|
||||
drupal_theme_rebuild();
|
||||
node_types_rebuild();
|
||||
menu_rebuild();
|
||||
cache_clear_all('schema', 'cache');
|
||||
|
|
|
@ -2959,7 +2959,7 @@ function system_update_7006() {
|
|||
db_create_table($ret, 'cache_registry', $schema['cache_registry']);
|
||||
db_create_table($ret, 'registry', $schema['registry']);
|
||||
db_create_table($ret, 'registry_file', $schema['registry_file']);
|
||||
drupal_rebuild_code_registry();
|
||||
registry_rebuild();
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -1224,7 +1224,7 @@ function system_settings_form_submit($form, &$form_state) {
|
|||
}
|
||||
|
||||
cache_clear_all();
|
||||
drupal_rebuild_theme_registry();
|
||||
drupal_theme_rebuild();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue