function template_preprocess_data_taxonomy_tagging_form

cis7 data_taxonomy.module template_preprocess_data_taxonomy_tagging_form(&$vars)

Preprocessor for theme('data_taxonomy_tagging_form').

File

sites/all/modules/local_contrib/data/data_taxonomy/data_taxonomy.module, line 513
Hooks and API functions for Data Node module.

Code

function template_preprocess_data_taxonomy_tagging_form(&$vars) {
  drupal_add_js(drupal_get_path('module', 'data_taxonomy') . '/theme/data_taxonomy.js');
  drupal_add_css(drupal_get_path('module', 'data_taxonomy') . '/theme/data_taxonomy.css');
  $vars['label'] = $vars['form']['#vocab']->name;
  if ($vars['form']['#edit']) {
    $vars['edit'] = $vars['form']['#edit'];
  }
  $vars['tags'] = theme('links', array('links' => data_taxonomy_tag_links($vars['form']['#terms'], $vars['form']['#path'], $vars['form']['#args']), 'attributes' => array('class' => 'links data-taxonomy-tags')));
}