-
-
Save chadhutchins/bc27ad961733072dd0d22a478c5e7043 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
<?php | |
$admin = BeanFactory::getBean('Administration'); | |
$admin->retrieveSettings('fanaticalzendesk'); | |
$encoded_string = $admin->settings['fanaticalzendesk_dashlet_mapping']; | |
$decoded_mapping = unserialize(base64_decode($encoded_string)); | |
$fzDashletSupportedModules = array_keys($decoded_mapping); | |
$GLOBALS['log']->fatal('fzDashletSupportedModules: '.print_r($fzDashletSupportedModules,true)); | |
// ^^^ when I view the logs it looks correct, looks like this: (fl_Orders being the custom module I'm adding) | |
// array('Contacts','Accounts','Leads','Prospects','Opportunities','fl_Orders'); | |
$viewdefs['base']['view']['fanatical-zendesk-dashlet'] = array( | |
'dashlets' => array( | |
array( | |
'name' => 'LBL_FANATICALZENDESK_DASHLET_NAME', | |
// ... | |
// ... | |
// .. | |
'filter' => array( | |
'module' => array( | |
$fzDashletSupportedModules | |
), | |
'view' => 'record' | |
), | |
), | |
), | |
// ... | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment