You are here

function tvi_vocab_form in Taxonomy Views Integrator 7

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

Adds TVI administration form to the vocabulary edit page.

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

Parameters

array $form: The vocabulary edit form.

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

File

includes/tvi.admin.inc, line 15
Administration functions for the tvi module.

Code

function tvi_vocab_form(&$form) {
  if (array_key_exists('#vocabulary', $form)) {
    $vid = '_autocreate';
    if (!empty($form['#vocabulary']->vid)) {
      $vid = (int) $form['#vocabulary']->vid;
    }
    tvi_include('query');
    tvi_taxonomy_admin_form($form, tvi_load_settings($vid, TVI_TYPE_VOCAB));
  }
}