function data_taxonomy_views_handler_field_form::render

cis7 data_taxonomy_views_handler_field_form.inc data_taxonomy_views_handler_field_form::render($values)

Render form.

Overrides views_handler_field::render

File

sites/all/modules/local_contrib/data/data_taxonomy/views/data_taxonomy_views_handler_field_form.inc, line 67

Class

data_taxonomy_views_handler_field_form
Provide a form to associate data records with taxonomy terms.

Code

function render($values) {
  $output = '';
  $table = data_get_table($this->table);
  $meta = $table->get('meta');
  if (!empty($meta['data_taxonomy']['vocabularies'])) {
    foreach ($meta['data_taxonomy']['vocabularies'] as $vid) {
      if (!empty($this->options['vocabularies'][$vid])) {
        $vocabulary = data_taxonomy_get_vocabulary($vid);
        $output .= drupal_get_form('data_taxonomy_tagging_form', $vocabulary->vid, $values->{$this->id}, $this->table, $this->options['path'], is_array($this->view->args) ? $this->view->args : array());
      }
    }
  }
  return $output;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.