You are here

function page_manager_handler_disable_submit in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 page_manager/page_manager.admin.inc \page_manager_handler_disable_submit()

Disable the page after it has been confirmed.

File

page_manager/page_manager.admin.inc, line 1660
Administrative functions for the page manager.

Code

function page_manager_handler_disable_submit(&$form, &$form_state) {
  $form_state['handler']->disabled = TRUE;
  $form_state['page']->handler_info[$form_state['handler_id']]['disabled'] = TRUE;
  $form_state['page']->handler_info[$form_state['handler_id']]['changed'] |= PAGE_MANAGER_CHANGED_STATUS;
  $form_state['new trail'] = array(
    'handlers',
    $form_state['handler_id'],
    'actions',
    'enable',
  );
}