This file contains hidden or 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 | |
| $action_file_map['helloworld'] = 'custom/modules/Campaigns/HelloWorld.php'; |
This file contains hidden or 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 | |
| $installdefs = array( | |
| //...shorten for brevity | |
| 'action_file_map' => array( | |
| array( | |
| 'from' => '<basepath>/extensions/custom/modules/Campaigns/ActionFileMap/HelloWorld.php', | |
| 'to_module' => 'Campaigns', | |
| ), | |
| ), | |
This file contains hidden or 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 | |
| echo "Hello World!"; |
This file contains hidden or 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 | |
| /** | |
| * /custom/modules/Accounts/logic_hooks.php | |
| */ | |
| $hook_version = 1; | |
| $hook_array = Array(); | |
| $hook_array['before_save'] = Array(); | |
| $hook_array['before_save'][] = Array(1, 'account_type_change', 'custom/modules/Accounts/ReassignSecurityGroup.php','ReassignSecurityGroup', 'account_type_change'); |
This file contains hidden or 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 | |
| /** | |
| * /custom/modules/Accounts/ReassignSecurityGroup.php | |
| */ | |
| if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
| class ReassignSecurityGroup { | |
| function account_type_change(&$bean, $event, $arguments) | |
| { |
This file contains hidden or 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 | |
| $viewdefs['base']['layout']['header'] = array( | |
| 'components' => | |
| array( | |
| array( | |
| 'view' => 'modulelist', | |
| ), | |
| array( | |
| 'view' => 'quickcreate', | |
| ), |
This file contains hidden or 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
| ({ | |
| extendsFrom: 'ProfileactionsView', | |
| setCurrentUserData: function() { | |
| this.wiki_user = app.user.get("wiki_user"); | |
| app.view.invokeParent(this, {type: 'view', name: 'profileactions', method: 'setCurrentUserData'}); | |
| } | |
| }) |
This file contains hidden or 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
| ......abbreviated | |
| <li class="profileactions-logout"><a href="#logout/?clear=1">{{str "LBL_LOGOUT"}}</a></li> | |
| {{#if wiki_user}} | |
| <li class="profileactions-wiki"><a href="http://www.oursite.com/wiki/{{wiki_user}}">{{wiki_user}}'s Wiki Profile</a></li> | |
| {{/if}} | |
| ............ |
This file contains hidden or 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
| require_once 'clients/base/api/CurrentUserApi.php'; | |
| class WikiCurrentUserApi extends CurrentUserApi | |
| { | |
| /** | |
| * Override the core api with our own versoin of retrieveCurrentUser | |
| */ | |
| public function registerApiRest() | |
| { | |
| return array( |
This file contains hidden or 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
| setCurrentUserData: function() { | |
| this.fullName = app.user.get("full_name"); | |
| this.userName = app.user.get("user_name"); | |
| // **** our custom data to be pass through | |
| this.wiki_user = app.user.get("wiki_user"); | |
| //........abbreviated | |
| } |