function _views_prepare_handler

cis7 handlers.inc _views_prepare_handler($definition, $data, $field, $type)
cle7 handlers.inc _views_prepare_handler($definition, $data, $field, $type)
elmsmedia7 handlers.inc _views_prepare_handler($definition, $data, $field, $type)
icor7 handlers.inc _views_prepare_handler($definition, $data, $field, $type)
meedjum_blog7 handlers.inc _views_prepare_handler($definition, $data, $field, $type)
mooc7 handlers.inc _views_prepare_handler($definition, $data, $field, $type)

Prepare a handler's data by checking defaults and such.

1 call to _views_prepare_handler()
views_get_handler in sites/all/modules/ulmus/views/views.module
Fetch a handler from the data cache.

File

sites/all/modules/ulmus/views/includes/handlers.inc, line 73
Defines the various handler objects to help build and display views.

Code

function _views_prepare_handler($definition, $data, $field, $type) {
  foreach (array(
    'group',
    'title',
    'title short',
    'help',
    'real field',
  ) as $key) {
    if (!isset($definition[$key])) {
      // First check the field level
      if (!empty($data[$field][$key])) {
        $definition[$key] = $data[$field][$key];
      }
      // Then if that doesn't work, check the table level
      elseif (!empty($data['table'][$key])) {
        $definition[$key] = $data['table'][$key];
      }
    }
  }

  return _views_create_handler($definition, 'handler', $type);
}
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.