function page_manager_enable_form_submit

Enable the page after it has been confirmed.

File

page_manager/page_manager.admin.inc, line 1798

Code

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);
        menu_rebuild();
    }
    $form_state['new trail'] = array(
        'actions',
        'disable',
    );
    // 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;
    }
}