You are here

function tvi_term_form in Taxonomy Views Integrator 6

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

Adds TVI administration form to the term edit page

admin/content/taxonomy/edit/term/$tid

Related topics

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

File

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

Code

function tvi_term_form(&$form) {
  if (!($tid = $form['#term']['tid'])) {
    return;
  }

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

  // core taxonomy fieldset
  $form['advanced']['#weight'] = 0;

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