You are here

function taxonomy_menu_path_custom_taxonomy_menu_options in Taxonomy menu 6.2

@file Implementation of hook_taxonomy_menu_options().

Return value

array Uses the value to set the variable taxonomy_menu_<value>_$vid $options[value] default - optional. this is what will be used if the varialbe is not set. if empty then FALSE is used #title - required. any other form element

File

taxonomy_menu_path_custom/taxonomy_menu_path_custom.module, line 15
Implementation of hook_taxonomy_menu_options().

Code

function taxonomy_menu_path_custom_taxonomy_menu_options() {
  $options['taxonomy_menu_path_custom_depth'] = array(
    '#title' => t('Display depth in custom path'),
    '#weight' => -2,
    '#description' => t("Only used with a custom path.<br />To use depth the path in the view has to have the path of '<base path for custom path>/%/%'. The two arguments must be 'Term ID (with depth)' and 'Depth modifier'.<br />Have this view setup <strong>before</strong> you create this taxonomy menu. Otherwise leave this field empty!"),
    'default' => '',
    '#type' => 'textfield',
  );
  $options['taxonomy_menu_path_custom_base_path'] = array(
    '#title' => t('Base path for custom path'),
    '#weight' => -3,
    '#type' => 'textfield',
    'default' => 'category',
    '#description' => t("Only used with a custom path.<br />You need to have a view with path 'custom path/%' and an argument 'Term ID' <strong>before</strong> you create this taxonomy menu."),
  );
  $options['taxonomy_menu_path_custom_use_term_name'] = array(
    '#title' => t('Use term name'),
    '#weight' => -1,
    '#type' => 'checkbox',
    'default' => '',
    '#description' => t("If checked, use term name instead of term ID."),
  );
  return $options;
}