function asset_widget_pre_render_contextual in Asset 7
Alter contextual_links renderable array to prevent wrong destination for view edit link.
1 string reference to 'asset_widget_pre_render_contextual'
- asset_widget_element_info_alter in modules/
asset_widget/ asset_widget.module - Implements hook_element_info_alter().
File
- modules/
asset_widget/ asset_widget.module, line 127 - Code for the Asset widget module.
Code
function asset_widget_pre_render_contextual($element) {
if (arg(0) == 'ajax' && !empty($element['#links']['views-ui-edit']['query']['destination'])) {
unset($element['#links']['views-ui-edit']['query']);
}
return $element;
}