You are here

function brightcove_cck_handler_field_video_tags_multiple::element_type in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove_cck/views/brightcove_cck_handler_field_video_tags_multiple.inc \brightcove_cck_handler_field_video_tags_multiple::element_type()

Return DIV or SPAN based upon the field's element type.

Fields rendered with the 'group multiple' option use <div> markers, and thus shouldn't be wrapped in a <span>.

Overrides content_handler_field_multiple::element_type

File

brightcove_cck/views/brightcove_cck_handler_field_video_tags_multiple.inc, line 141
An extended subclass for field handling that adds multiple field grouping.

Class

brightcove_cck_handler_field_video_tags_multiple
@file An extended subclass for field handling that adds multiple field grouping.

Code

function element_type() {
  if (!$this->defer_query) {
    return parent::element_type();
  }
  if (isset($this->definition['element type'])) {
    return $this->definition['element type'];
  }
  return 'div';
}