I’ve a view that produces a desk.
Along with the fields outlined within the supply nodes, I’ve added a hyperlink to “edit the node”.
Clearly, this hyperlink shouldn’t be seen, or higher but, not rendered in any respect except the consumer has privilege. So – based mostly on some enterprise logic, I need to take away the “Edit the Node” Hyperlink
An identical query right here was answered with a advocate to make use of https://www.drupal.org/venture/views_conditional
It will just isn’t a really viable different as a result of:
1) It typically (completely?) depends on conditional based mostly on different fields (useful, however not relevant)
2) I do not need sophisticated logic hiding in a View.
I’ve tried to get hook_views_pre_render() to work – however no success.
Once more, if this was a “regular” discipline pulled into the view->outcome object, issues can be simple.
The sector title is ‘edit_node’. However I am stumped on take away it.
$view->discipline['edit_node']->choices['exclude'] = TRUE;