You are here

function tft_settings_form in Taxonomy File Tree 7.2

Same name and namespace in other branches
  1. 7 tft.admin.inc \tft_settings_form()

Form: settings form.

1 string reference to 'tft_settings_form'
tft_menu in ./tft.module
Implementation of hook_menu().

File

includes/tft.admin.inc, line 11
Defines the administration logic and tasks.

Code

function tft_settings_form($form, $form_state) {
  $form['tft_page_title'] = array(
    '#type' => 'textfield',
    '#title' => t("Page title"),
    '#description' => t("The page title to display on all Taxonomy File Tree pages."),
    '#default_value' => variable_get('tft_page_title', t("Taxonomy File Tree")),
    '#required' => TRUE,
  );
  $form['tft_use_weight'] = array(
    '#type' => 'radios',
    '#title' => t("Allow sorting on re-order items page"),
    '#description' => t("Items can not only be arranged in a parent-child relationship, they can also be sorted relative to one another. By default, items are grouped by type (files together, folders together) and then sorted by name. By enabling this option, files and folders can be sorted as users see fit."),
    '#options' => array(
      t("No"),
      t("Yes"),
    ),
    '#default_value' => variable_get('tft_use_weight', 0),
  );
  return system_settings_form($form);
}