function views_handler_field::element_label_type

cis7 views_handler_field.inc views_handler_field::element_label_type($none_supported = FALSE, $default_empty = FALSE)
cle7 views_handler_field.inc views_handler_field::element_label_type($none_supported = FALSE, $default_empty = FALSE)
elmsmedia7 views_handler_field.inc views_handler_field::element_label_type($none_supported = FALSE, $default_empty = FALSE)
icor7 views_handler_field.inc views_handler_field::element_label_type($none_supported = FALSE, $default_empty = FALSE)
meedjum_blog7 views_handler_field.inc views_handler_field::element_label_type($none_supported = FALSE, $default_empty = FALSE)
mooc7 views_handler_field.inc views_handler_field::element_label_type($none_supported = FALSE, $default_empty = FALSE)

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

File

sites/all/modules/ulmus/views/handlers/views_handler_field.inc, line 222
@todo.

Class

views_handler_field
Base field handler that has no options and renders an unformatted field.

Code

function element_label_type($none_supported = FALSE, $default_empty = FALSE) {
  if ($none_supported) {
    if ($this->options['element_label_type'] === '0') {
      return '';
    }
  }
  if ($this->options['element_label_type']) {
    return check_plain($this->options['element_label_type']);
  }

  if ($default_empty) {
    return '';
  }

  return 'span';
}
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.