You are here

tft.admin.inc in Taxonomy File Tree 7.2

Defines the administration logic and tasks.

File

includes/tft.admin.inc
View source
<?php

/**
 * @file
 * Defines the administration logic and tasks.
 */

/**
 * Form: settings form.
 */
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);
}

Functions

Namesort descending Description
tft_settings_form Form: settings form.