function path_breadcrumbs_ui_settings_submit in Path Breadcrumbs 7.3
Same name and namespace in other branches
- 7.2 path_breadcrumbs_ui/path_breadcrumbs_ui.admin.inc \path_breadcrumbs_ui_settings_submit()
Submit function for path_breadcrumbs_ui_settings form.
1 string reference to 'path_breadcrumbs_ui_settings_submit'
- path_breadcrumbs_ui_settings in path_breadcrumbs_ui/
path_breadcrumbs_ui.admin.inc - Path Breadcrumbs settings form.
File
- path_breadcrumbs_ui/
path_breadcrumbs_ui.admin.inc, line 317 - Administrative callbacks for PATH BREADCRUMBS UI module.
Code
function path_breadcrumbs_ui_settings_submit($form, &$form_state) {
$values = $form_state['values'];
// Flush theme registry if internal render was changed to enable/disable system render in theme_breadcrumb() function.
$internal_render_new_value = $values['path_breadcrumbs_internal_render'];
$internal_render_old_value = variable_get('path_breadcrumbs_internal_render', 1);
$themes_new_value = array_filter($values['path_breadcrumbs_internal_render_themes']);
$themes_old_value = variable_get('path_breadcrumbs_internal_render_themes', array());
$form_state['values']['path_breadcrumbs_internal_render_themes'] = $themes_new_value;
if ($internal_render_new_value != $internal_render_old_value || $themes_new_value != $themes_old_value) {
drupal_theme_rebuild();
}
// Truncate all cached data.
cache_clear_all('*', PATH_BREADCRUMBS_CACHE_STORAGE, TRUE);
}