public function RulesRuleUI::operations in Rules 7.2
Implements RulesPluginUIInterface.
Overrides RulesContainerPluginUI::operations
File
- ui/
ui.plugins.inc, line 80 - Contains UI for diverse plugins provided by Rules.
Class
- RulesRuleUI
- Rule specific UI.
Code
public function operations() {
// When rules are listed only show the edit and delete operations.
$ops = parent::operations();
$ops['#links'] = array_intersect_key($ops['#links'], array_flip(array(
'edit',
'delete',
)));
return $ops;
}