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 'modules/Configurator/Configurator.php'; | |
| $configurator = new Configurator(); | |
| $configurator->loadConfig(); | |
| $configurator->config['abc_module_api_url'] = $_REQUEST['api_url']; | |
| $configurator->saveConfig(); |
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
| <form name="ConfigureSettings" id="EditView" method="POST" > | |
| <input type="hidden" name="module" value="abc_Module"> | |
| <input type="hidden" name="action" value="SaveConfig"> | |
| API URL: <input type="text" name="api_url" value="" size="35"/><br/> | |
| <input type='submit' value='Save Configuration' /> | |
| </form> |
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 | |
| if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
| class SO_LoopExample { | |
| function reassign($bean, $event, $arguments) | |
| { | |
| $GLOBALS['log']->fatal('SO_LoopExample called for contact: '.$bean->name); | |
| //get all contacts with the same first name...including this contact |
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 | |
| if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
| class SO_LoopExample { | |
| static $already_ran = false; | |
| function reassign($bean, $event, $arguments) | |
| { | |
| if(self::$already_ran == true) return; |
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 | |
| if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
| //always extend an existing view if one exists | |
| require_once('modules/Accounts/views/view.detail.php'); | |
| class CustomAccountsViewDetail extends AccountsViewDetail | |
| { | |
| function preDisplay() { | |
| global $current_user; |
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
| <form name="ConfigureSettings" id="EditView" method="POST" > | |
| <input type="hidden" name="module" value="abc_Module"> | |
| <input type="hidden" name="action" value=”SaveConfig”> | |
| API URL: <input type="text" name="api_url" value="" size="35"/><br/> | |
| <input type='submit' value='Save Configuration' /> | |
| </form> |
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 | |
| require_once('modules/Administration/Administration.php'); | |
| $administration = new Administration(); | |
| //do data validation, etc here | |
| //.... | |
| //save the setting to the config table | |
| $administration->saveSetting('abc_Module', 'api_url', $_REQUEST['api_url']); |
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 | |
| require_once('modules/Administration/Administration.php'); | |
| $administration = new Administration(); | |
| $administration->retrieveSettings(); | |
| $api_url = $administration->settings['abc_Module_api_url']; |
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 | |
| require_once 'modules/Configurator/Configurator.php'; | |
| $configurator = new Configurator(); | |
| $configurator->loadConfig(); | |
| $configurator->config['abc_module_api_url'] = $_REQUEST['api_url']; | |
| $configurator->saveConfig(); |
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
| 'acceptable_sugar_flavors' => array( | |
| 'CE', 'PRO','ENT' | |
| ), | |
| 'acceptable_sugar_versions' => array( | |
| '6.5.7', | |
| '6.5.8', | |
| '6.5.9' | |
| ), |