-
-
Save melvinlee/1ba7876b28419d95886a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#selector').sugarActionMenu('addItem',{ | |
item: $('<li><a href="#">New Item!</a></li>'), // a jquery element to add, | |
index: 1 // (optional) set the exact order the new option will show in the list (1 being the first item) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$hook_version = 1; | |
$hook_array = array(); | |
$hook_array['after_ui_frame'] = array(); | |
$hook_array['after_ui_frame'][] = Array(1, 'Accounts InsideView frame', 'modules/Connectors/connectors/sources/ext/rest/insideview/InsideViewLogicHook.php','InsideViewLogicHook', 'showFrame'); | |
// Add the new hook | |
$hook_array['after_ui_frame'][] = Array(2, 'Add Buttons to Account Module Views', 'custom/modules/Accounts/AccountButtons.php','AccountButtons', 'add'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment