function panels_views_enable_page in Panels 5.2
Enable a default view pane.
1 string reference to 'panels_views_enable_page'
- panels_views_menu in panels_views/
panels_views.module - Implementation of hook_menu().
File
- panels_views/
panels_views.module, line 670 - panels_views.module
Code
function panels_views_enable_page($name = NULL) {
$defaults = panels_views_default_panels();
if (isset($defaults[$name])) {
$status = variable_get('panels_views_defaults', array());
$status[$name] = FALSE;
variable_set('panels_views_defaults', $status);
drupal_set_message(t('Panel view enabled'));
}
drupal_goto();
}