function bibcite_entity_preprocess_links__dropbutton__operations in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 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']);
}
}