function page_manager_save_page_form

Provide a simple form for saving the page manager info out of the cache.

2 string references to 'page_manager_save_page_form'
page_manager_edit_page in page_manager/page_manager.admin.inc
Render the edit page for a a page, custom or system.
page_manager_edit_page_operation in page_manager/page_manager.admin.inc
Entry point to edit a single operation for a page.

File

page_manager/page_manager.admin.inc, line 1253

Code

function page_manager_save_page_form($form, &$form_state) {
    if (!empty($form_state['page']->changed)) {
        $form['markup'] = array(
            '#markup' => '<div class="changed-notification">' . t('You have unsaved changes to this page. You must select Save to write them to the database, or Cancel to discard these changes. Please note that if you have changed any form, you must submit that form before saving.') . '</div>',
        );
        // Always make sure we submit back to the proper page.
        $form['#action'] = url('admin/structure/pages/edit/' . $form_state['page']->task_name);
        $form['save'] = array(
            '#type' => 'submit',
            '#value' => t('Save'),
            '#submit' => array(
                'page_manager_save_page_form_submit',
            ),
        );
        $form['cancel'] = array(
            '#type' => 'submit',
            '#value' => t('Cancel'),
            '#submit' => array(
                'page_manager_save_page_form_cancel',
            ),
        );
        return $form;
    }
}