You are here

function page_manager_enable_form_submit in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 page_manager/ \page_manager_enable_form_submit()

Enable the page after it has been confirmed.


page_manager/, line 1798
Administrative functions for the page manager.


function page_manager_enable_form_submit(&$form, &$form_state) {
  $page =& $form_state['page'];
  if ($function = ctools_plugin_get_function($page->subtask, 'enable callback')) {
    $result = $function($page, FALSE);
  $form_state['new trail'] = array(

  // We don't want to cause this to cache if it wasn't already. If it was
  // cached, however, we want to update the enabled state.
  if (empty($form_state['page']->changed)) {
    $form_state['do not cache'] = TRUE;