If I create an action link using the following:
/**
* Implements theme_menu_local_tasks_alter().
*/
function themename_menu_local_tasks_alter(&$data, $router_item, $root_path) {
if ($root_path == 'add-your-URL-here') {
$item = menu_get_item('node/add/something');
if ($item['access']) {
$data['actions']['output'][] = array(
'#theme' => 'menu_local_action',
'#link' => $item,
);
}
}
}
*the above code should be altered URL and link wise.
The link won't appear in the action links block provided by blockify, but it will if I print the standard "$action_links" in page.tpl.php
Comments
Comment #1
adamgerthel commentedMy bad. It does work, the block just wasn't being displayed for other reasons not related to this module.