system_actions_manage_form
modules/system/system.module, строка 1365
- Версии
- 6
system_actions_manage_form($form_state, $options = array())
Define the form for the actions overview page.
See also
system_actions_manage_form_submit()
Параметры
$form_state
An associative array containing the current state of the form; not used.
$options
An array of configurable actions.
Возвращаемое значение
Form definition.
Связанные темы
Код
<?php
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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии