function action_admin_manage_form

Define the form for the actions overview page.

Parameters

$form_state: An associative array containing the current state of the form; not used.

$options: An array of configurable actions.

Return value

Form definition.

See also

action_admin_manage_form_submit()

Related topics

1 string reference to 'action_admin_manage_form'
action_admin_manage in drupal/core/modules/action/action.admin.inc
Menu callback; Displays an overview of available and configured actions.

File

drupal/core/modules/action/action.admin.inc, line 97
Admin page callbacks for the Action module.

Code

function action_admin_manage_form($form, &$form_state, $options = array()) {
  $form['parent'] = array(
    '#type' => 'details',
    '#title' => t('Create an advanced action'),
    '#attributes' => array(
      'class' => array(
        'container-inline',
      ),
    ),
  );
  $form['parent']['action'] = array(
    '#type' => 'select',
    '#title' => t('Action'),
    '#title_display' => 'invisible',
    '#options' => $options,
    '#empty_option' => t('Choose an advanced action'),
  );
  $form['parent']['actions'] = array(
    '#type' => 'actions',
  );
  $form['parent']['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create'),
  );
  return $form;
}