You are here

taxonomy_block.settings.inc in Taxonomy Block 6

Same filename and directory in other branches
  1. 7 taxonomy_block.settings.inc

Settings page callback file for the taxonomy_block_i18n module.

File

taxonomy_block.settings.inc
View source
<?php

/**
 * @file
 * Settings page callback file for the taxonomy_block_i18n module.
 */

/**
 * Menu callback;
 */
function taxonomy_block_i18n_admin_settings() {
  $form = array();

  // only administrators can access this function
  // Generate the form - settings applying to all patterns first
  $form['taxonomy_block_i18n_settings'] = array(
    '#type' => 'fieldset',
    '#weight' => -30,
    '#title' => t('Basic settings'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['taxonomy_block_i18n_settings']['taxonomy_block_i18n_settings_vid'] = array(
    '#type' => 'textfield',
    '#title' => t("Vocabulary ID"),
    '#default_value' => variable_get('taxonomy_block_i18n_settings_vid', 1),
    '#description' => t("Enter Vocabulary ID for used by taxonomy block."),
  );
  $form['taxonomy_block_i18n_settings']['taxonomy_block_i18n_settings_node_count'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show node count'),
    '#default_value' => variable_get('taxonomy_block_i18n_settings_node_count', 0),
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
taxonomy_block_i18n_admin_settings Menu callback;