Keep having to look this up so here goes:
if you want to add a link to a custom view in the Accounts module you need to create a file called menu.ext.php in the folder /custom/modules/Accounts/Ext/Menus/ – for some reason every time I run a repair in Admin though this file is deleted, I will update this Post once I find out wtf is going on.
Let’s say you’ve got a custom action in the Accounts Module called “hello” , the following code in your menu.ext.php file will add a link with the Text “Hello” in the Accounts list view.
if(!defined(‘sugarEntry’) || !sugarEntry) die(‘Not A Valid Entry Point’);
if(ACLController::checkAccess(‘Accounts’, ‘edit’, true)) $module_menu=Array(
You also need to create a file called action_view_map.php in the folder /custom/modules/Accounts/ and add the line:
<?php $action_view_map[‘hello’] = ‘hello’; ?>
You also would need to create a view file in /custom/modules/Accounts/views/view.hello.php which extends the ViewList class.
See this article for background http://watchcatblog.blogspot.co.uk/2011/07/sugarcrm-adding-custom-view-using-mvc.html