You are here

function viewsreference_module_implements_alter in Views Reference Field 8.2

Implements hook_module_implements_alter().

File

./viewsreference.module, line 45
Defines a field type to embed views in an entity reference field.

Code

function viewsreference_module_implements_alter(&$implementations, $hook) {
  if ($hook === 'views_pre_render') {

    // Move viewsreference_views_pre_render() to the end of the list.
    $viewsreference_hook = $implementations['viewsreference'];
    unset($implementations['viewsreference']);
    $implementations['viewsreference'] = $viewsreference_hook;
  }
}