You are here

function system_actions_manage_form in Drupal 6

Same name and namespace in other branches
  1. 7 modules/system/system.admin.inc \system_actions_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

system_actions_manage_form_submit()

Related topics

1 string reference to 'system_actions_manage_form'
system_actions_manage in modules/system/system.module
Menu callback. Display an overview of available and configured actions.

File

modules/system/system.module, line 1458
Configuration system that lets administrators modify the workings of the site.

Code

function system_actions_manage_form($form_state, $options = array()) {
  $form['parent'] = array(
    '#type' => 'fieldset',
    '#title' => t('Make a new advanced action available'),
    '#prefix' => '<div class="container-inline">',
    '#suffix' => '</div>',
  );
  $form['parent']['action'] = array(
    '#type' => 'select',
    '#default_value' => '',
    '#options' => $options,
    '#description' => '',
  );
  $form['parent']['buttons']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create'),
  );
  return $form;
}