function context_entity_prepare_view

cis7 context.core.inc context_entity_prepare_view($prepare, $entity_type)
cle7 context.core.inc context_entity_prepare_view($prepare, $entity_type)
elmsmedia7 context.core.inc context_entity_prepare_view($prepare, $entity_type)
icor7 context.core.inc context_entity_prepare_view($prepare, $entity_type)
meedjum_blog7 context.core.inc context_entity_prepare_view($prepare, $entity_type)
mooc7 context.core.inc context_entity_prepare_view($prepare, $entity_type)

Implementation of hook_entity_prepare_view().

File

sites/all/modules/ulmus/context/context.core.inc, line 110

Code

function context_entity_prepare_view($prepare, $entity_type) {
  if ($entity_type === 'taxonomy_term' && count($prepare) === 1) {
    $term = reset($prepare);
    $menu = menu_get_object('taxonomy_term', 2);
    if ($menu && $term->tid == $menu->tid && $plugin = context_get_plugin('condition', 'taxonomy_term')) {
      $plugin->execute($term, 'view');
    }
  }
}
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.