function flag_lists_create_template_form in Flag Lists 7
Same name and namespace in other branches
- 6 flag_lists.admin.inc \flag_lists_create_template_form()
- 7.3 flag_lists.admin.inc \flag_lists_create_template_form()
Form to create a new template.
1 string reference to 'flag_lists_create_template_form'
- flag_lists_menu in ./
flag_lists.module - Implementation of hook_menu().
File
- ./
flag_lists.admin.inc, line 361 - Contains administrative pages for creating, editing, and deleting flag lists.
Code
function flag_lists_create_template_form($form, $form_state) {
drupal_set_title(t('Add a new list template'));
$form['help'] = array(
'#value' => t('This form creates a new, blank list template. After saving, you will be able to configure further options.'),
);
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Template name'),
'#description' => t('The machine-name for this template. It may be up to 32 characters long and my only contain lowercase letters, underscores, and numbers.'),
'#maxlength' => 255,
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}