Define route-based local actions.
Instead of using MENU_LOCAL_ACTION in hook_menu(), implement hook_local_actions().
array An associative array containing the following keys:
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_local_actions() {
return array(
array(
'route_name' => 'mymodule.route.action',
'title' => t('Perform local action'),
'appears_on' => array(
'mymodule.other_route',
'mymodule.other_other_route',
),
),
);
}