You are here

function taxonomy_block_i18n_admin_settings in Taxonomy Block 6

Menu callback;

1 string reference to 'taxonomy_block_i18n_admin_settings'
taxonomy_block_i18n_menu in ./taxonomy_block.module
Menu callback. Prints a listing of active nodes on the site.

File

./taxonomy_block.settings.inc, line 11
Settings page callback file for the taxonomy_block_i18n module.

Code

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);
}