On this page
function system_actions_manage_form
system_actions_manage_form($form, &$form_state, $options = array())
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
File
- modules/system/system.admin.inc, line 3034
- Admin page callbacks for the system module.
Code
function system_actions_manage_form($form, &$form_state, $options = array()) {
$form['parent'] = array(
'#type' => 'fieldset',
'#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;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.admin.inc/function/system_actions_manage_form/7.x