function node_test_entity_view_mode_alter

cis7 node_test.module node_test_entity_view_mode_alter(&$view_mode, $context)
cle7 node_test.module node_test_entity_view_mode_alter(&$view_mode, $context)
elmsmedia7 node_test.module node_test_entity_view_mode_alter(&$view_mode, $context)
icor7 node_test.module node_test_entity_view_mode_alter(&$view_mode, $context)
meedjum_blog7 node_test.module node_test_entity_view_mode_alter(&$view_mode, $context)
mooc7 node_test.module node_test_entity_view_mode_alter(&$view_mode, $context)

Implements hook_entity_view_mode_alter().

File

modules/node/tests/node_test.module, line 158
A dummy module for testing node related hooks.

Code

function node_test_entity_view_mode_alter(&$view_mode, $context) {
  // Only alter the view mode if we are on the test callback.
  if ($change_view_mode = variable_get('node_test_change_view_mode', '')) {
    $view_mode = $change_view_mode;
  }
}
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.