You are here

function flag_lists_create_template_form in Flag Lists 7.3

Same name and namespace in other branches
  1. 6 flag_lists.admin.inc \flag_lists_create_template_form()
  2. 7 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 370
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 @name template', array(
    '@name' => variable_get('flag_lists_name', 'list'),
  )));
  $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 20 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;
}