You are here

function ds_module_implements_alter in Display Suite 7

Same name and namespace in other branches
  1. 8.4 ds.module \ds_module_implements_alter()
  2. 8.2 ds.module \ds_module_implements_alter()
  3. 8.3 ds.module \ds_module_implements_alter()
  4. 7.2 ds.module \ds_module_implements_alter()

Implements hook_module_implements_alter().

File

./ds.module, line 347
Display Suite core functions.

Code

function ds_module_implements_alter(&$implementations, $hook) {

  // node_field_display_module_alter() disables all labels on all fields
  // when the view mode is 'search_index'. If you set display modes for
  // this view mode by hand, then the hook isn't needed. Since this
  // may be called hundreds of times on some pages, it's worth disabling it.
  // See http://drupal.org/node/834278
  // This code is also in Performance hacks module, but it's not bad to
  // disable this too in Display Suite by default.
  if ($hook == 'field_display_node_alter') {
    unset($implementations['node']);
  }
}