function page_manager_operation_wrapper

1 string reference to 'page_manager_operation_wrapper'
_page_manager_get_operation_content in page_manager/page_manager.admin.inc
Fetch the content for an operation, after it's been discovered from arguments.

File

page_manager/page_manager.admin.inc, line 979

Code

function page_manager_operation_wrapper($form, &$form_state) {
    if (empty($form_state['operation']['no update and save']) && !empty($form['buttons']['return']['#wizard type']) && $form['buttons']['return']['#wizard type']) {
        $form['buttons']['save'] = array(
            '#type' => 'submit',
            '#value' => !empty($form_state['form_info']['save text']) ? $form_state['form_info']['save text'] : t('Update and save'),
            '#wizard type' => 'finish',
            '#attributes' => $form['buttons']['return']['#attributes'],
            '#save' => TRUE,
        );
    }
    return $form;
}