You are here

function theme_active_tags_term_list_remove in Active Tags 7.2

Theme a list of taxonomy terms with remove action.

1 theme call to theme_active_tags_term_list_remove()
active_tags_field_widget_form in ./active_tags.module
Implements hook_field_widget_form().

File

./active_tags.module, line 130
Active Tags widget for free tagging taxonomies

Code

function theme_active_tags_term_list_remove($variables) {
  $output = '<div class="at-term-list">';
  foreach ($variables['terms'] as $term) {

    // @todo add field level id for div id to prevent collisions.
    $output .= '<div id="at-term-' . $term->tid . '" class="at-term at-term-remove"><span class="at-term-text">' . check_plain($term->name) . '</span><span class="at-term-action-remove">x</span></div> ';
  }
  $output .= '</div>';
  return $output;
}