function pagerer_preset_add_form in Pagerer 7
Preset add form.
1 string reference to 'pagerer_preset_add_form'
- pagerer_menu in ./
pagerer.module - Implements hook_menu().
File
- ./
pagerer.admin.inc, line 328 - Pagerer administration
Code
function pagerer_preset_add_form($form, &$form_state) {
$form['name'] = array(
'#type' => 'textfield',
'#size' => '64',
'#title' => t('New preset name'),
'#default_value' => '',
'#description' => t("Use only lowercase alphanumeric characters, underscores (_), and hyphens (-). Preset name 'core' is reserved for internal use."),
'#element_validate' => array(
'pagerer_preset_name_validate',
),
'#required' => TRUE,
);
return confirm_form($form, t('Add preset'), _PAGERER_CONFIG_PATH, '', t('Create preset'), t('Cancel'));
}