Hi,
you have to use addon for this purpose.
install method
Utils_RecordBrowserCommon::new_addon('contact', 'Custom/YourModule', 'contact_addon', array('Custom_YourModuleCommon', 'contact_addon_label'));
In common
class Custom_YourModuleCommon {
...
public static function contact_addon_label($record, $rb_obj) {
$mode = Utils_RecordBrowser::$mode;
if ($mode == 'view')
Base_ActionBarCommon::add( ... );
return array('show'=>false);
}
...
}
Addon function contact_addon is not necessary. Adjust logic for your needs.
Regards,
Adam