You are here

function quail_api_handler_field_markup::element_type in Quail API 7

Same name and namespace in other branches
  1. 8 includes/quail_api_handler_field_markup.inc \quail_api_handler_field_markup::element_type()

Return an HTML element based upon the field's element type.

Overrides views_handler_field::element_type

File

includes/quail_api_handler_field_markup.inc, line 56
Provides field markup handler for views integration for the quail api.

Class

quail_api_handler_field_markup
A handler for the quail_api_node problem "element" field.

Code

function element_type($none_supported = FALSE, $default_empty = FALSE, $inline = FALSE) {
  if ($inline) {
    return 'span';
  }
  if (isset($this->definition['element type'])) {
    return $this->definition['element type'];
  }
  return 'div';
}