Skip to content

Instantly share code, notes, and snippets.

@dwheeler
Created May 19, 2011 22:05
Show Gist options
  • Save dwheeler/981898 to your computer and use it in GitHub Desktop.
Save dwheeler/981898 to your computer and use it in GitHub Desktop.
googleMenuItem extension for SugarCRM
<?php
$dynamicDCActions['GoogleSearch'] = array(
//Module is optional if action is defined
'module' => 'Home',
'label' => "Google Search",
//Action is javascript to fire when the button is clicked.
//We will bring up the custom showGoogle action
//if action is not defined, the default action of a quick create for the given module is used.
'action'=> "DCMenu.loadView('Title','index.php?module=Home&action=showGoogle&to_pdf=1');",
//Custom Icon to show in the menu bar
'icon'=> SugarThemeRegistry::current()->getImageURL("icon_generic_bar_32.gif"),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment