function views_handler_field::get_elements

cis7 views_handler_field.inc views_handler_field::get_elements()
cle7 views_handler_field.inc views_handler_field::get_elements()
elmsmedia7 views_handler_field.inc views_handler_field::get_elements()
icor7 views_handler_field.inc views_handler_field::get_elements()
meedjum_blog7 views_handler_field.inc views_handler_field::get_elements()
mooc7 views_handler_field.inc views_handler_field::get_elements()

Provide a list of elements valid for field HTML.

This function can be overridden by fields that want more or fewer elements available, though this seems like it would be an incredibly rare occurence.

1 call to views_handler_field::get_elements()
views_handler_field::options_form in sites/all/modules/ulmus/views/handlers/views_handler_field.inc
Default options form that provides the label widget that all fields should have.

File

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

Class

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

Code

function get_elements() {
  static $elements = NULL;
  if (!isset($elements)) {
    $elements = variable_get('views_field_rewrite_elements', array(
      '' => t('- Use default -'),
      '0' => t('- None -'),
      'div' => 'DIV',
      'span' => 'SPAN',
      'h1' => 'H1',
      'h2' => 'H2',
      'h3' => 'H3',
      'h4' => 'H4',
      'h5' => 'H5',
      'h6' => 'H6',
      'p' => 'P',
      'strong' => 'STRONG',
      'em' => 'EM',
    ));
  }

  return $elements;
}
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.