You are here

function bibcite_entity_preprocess_links__dropbutton__operations in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/bibcite_entity.module \bibcite_entity_preprocess_links__dropbutton__operations()

Implements hook_preprocess_links().

Destination query element break redirect between forms.

File

modules/bibcite_entity/bibcite_entity.module, line 67
Module hooks.

Code

function bibcite_entity_preprocess_links__dropbutton__operations(&$variables) {
  if (isset($variables['links']['bibcite_merge']['link']['#options']['query']['destination'])) {
    unset($variables['links']['bibcite_merge']['link']['#options']['query']['destination']);
  }
}