function views_ui_config_item_form_rescan in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 views_ui/admin.inc \views_ui_config_item_form_rescan()
- 6.3 includes/admin.inc \views_ui_config_item_form_rescan()
- 7.3 includes/admin.inc \views_ui_config_item_form_rescan()
Submit hook to clear Drupal's theme registry (thereby triggering a templates rescan).
1 string reference to 'views_ui_config_item_form_rescan'
- views_plugin_display::options_form in plugins/
views_plugin_display.inc - Provide the default form for setting options.
File
Code
function views_ui_config_item_form_rescan($form, &$form_state) {
drupal_rebuild_theme_registry();
// The 'Theme: Information' page is about to be shown again. That page
// analyzes the output of theme_get_registry(). However, this latter
// function uses an internal cache (which was initialized before we
// called drupal_rebuild_theme_registry()) so it won't reflect the
// current state of our theme registry. The only way to clear that cache
// is to re-initialize the theme system:
unset($GLOBALS['theme']);
init_theme();
$form_state['rerender'] = TRUE;
$form_state['rebuild'] = TRUE;
}