You are here

function tvi_vocab_form in Taxonomy Views Integrator 6

Same name and namespace in other branches
  1. 7 includes/tvi.admin.inc \tvi_vocab_form()

Adds TVI administration form to the vocabulary edit page

admin/content/taxonomy/edit/vocabulary/$vid

Related topics

1 call to tvi_vocab_form()
tvi_form_alter in ./tvi.module
Implements hook_form_alter().

File

includes/tvi.admin.inc, line 61
TVI Administration Interface

Code

function tvi_vocab_form(&$form) {
  if (!($vid = $form['vid']['#value'])) {
    return;
  }

  // A bit of re-ordering
  $form['identification']['#weight'] = -4;

  // core taxonomy fieldset
  $form['content_types']['#weight'] = -3;

  // core taxonomy fieldset
  $form['settings']['#weight'] = -2;

  // core taxonomy fieldset
  tvi_include('query');
  tvi_taxonomy_admin_form($form, tvi_load_settings($vid, TVI_TYPE_VOCAB));
}