function page_manager_page_add_subtask_finish

Callback generated when the add page process is finished.

1 string reference to 'page_manager_page_add_subtask_finish'
page_manager_page_add_subtask in page_manager/plugins/tasks/page.admin.inc
Page callback to add a subtask.

File

page_manager/plugins/tasks/page.admin.inc, line 334

Code

function page_manager_page_add_subtask_finish(&$form_state) {
    $page =& $form_state['page'];
    // Update the cache with changes.
    page_manager_set_page_cache($page);
    $handler = $form_state['handler'];
    $handler_plugin = page_manager_get_task_handler($handler->handler);
    // Redirect to the new page's task handler editor.
    if (isset($handler_plugin['add finish'])) {
        $form_state['redirect'] = page_manager_edit_url($page->task_name, array(
            'handlers',
            $handler->name,
            $handler_plugin['add finish'],
        ));
    }
    else {
        $form_state['redirect'] = page_manager_edit_url($page->task_name);
    }
    return;
}