You are here

function tvi_term_form in Taxonomy Views Integrator 7

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

Adds TVI administration form to the term edit page.

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

Parameters

array $form: The term edit form.

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

File

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

Code

function tvi_term_form(&$form) {
  if (array_key_exists('#term', $form)) {
    $tid = '_autocreate';
    if (!empty($form['#term']['tid'])) {
      $tid = (int) $form['#term']['tid'];
    }
    tvi_include('query');
    tvi_taxonomy_admin_form($form, tvi_load_settings($tid, TVI_TYPE_TERM));
  }
}