You are here

function panels_views_disable_page in Panels 5.2

Disable a default view pane.

1 string reference to 'panels_views_disable_page'
panels_views_menu in panels_views/panels_views.module
Implementation of hook_menu().

File

panels_views/panels_views.module, line 684
panels_views.module

Code

function panels_views_disable_page($name = NULL) {
  $defaults = panels_views_default_panels();
  if (isset($defaults[$name])) {
    $status = variable_get('panels_views_defaults', array());
    $status[$name] = TRUE;
    variable_set('panels_views_defaults', $status);
    drupal_set_message(t('Panel view disabled'));
  }
  drupal_goto();
}