function page_manager_page_form_delete

Entry point to export a page.

1 string reference to 'page_manager_page_form_delete'
page_manager_page_build_subtask in page_manager/plugins/tasks/page.inc
Build a subtask array for a given page.

File

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

Code

function page_manager_page_form_delete($form, &$form_state) {
    $page =& $form_state['page']->subtask['subtask'];
    if ($page->type == t('Overridden')) {
        $text = t('Reverting the page will delete the page that is in the database, reverting it to the original default page. Any changes you have made will be lost and cannot be recovered.');
    }
    else {
        $text = t('Are you sure you want to delete this page? Deleting a page cannot be undone.');
    }
    $form['markup'] = array(
        '#value' => '<p>' . $text . '</p>',
    );
    if (empty($form_state['page']->locked)) {
        unset($form['buttons']);
        $form['delete'] = array(
            '#type' => 'submit',
            '#value' => $page->type == t('Overridden') ? t('Revert') : t('Delete'),
        );
    }
    return $form;
}