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
$task = MaestroTask::createTaskObject($queue_id); | |
$task_data = $task->prepareTask(); | |
$notification_type = $task_data['optional_parm']['notification_type']; | |
// If you need to complete a task, you can use the engine()->completeTask() method | |
$maestro->engine()->completeTask($queue_id, $status); |
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
/* Objective: Loop over an array of Drupal user objects and build a string of email addresses for the $to variable. | |
* At first there was an issue because the variable $to_email_array was not being accessible to the anonymous function | |
* and then I saw answer2 to a similar question: | |
* > http://stackoverflow.com/questions/11420520/php-variables-in-anonymous-functions | |
*/ | |
$to_email_array = array(); | |
array_walk($users_group, function(&$user, &$uid) use (&$to_email_array) { | |
$to_email_array[] = $user->mail; | |
}); |
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
/* Define Views interface for custom data tables */ | |
function as_dashboard_views_data() { | |
$data = array(); | |
$data['communication_builder_contact_list'] = array( | |
'table' => array( | |
'group' => t('AdvisorStream'), | |
'title' => t('contact list'), | |
'help' => t('Broker Contact List Names'), | |
'base' => array( | |
'field' => 'id', |
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
// Add a theme_wrapper definition so thats it now treated like a standard form element | |
$form['field_DATEFIELDNAME']['und'][0]['#theme_wrappers'] = array('form_element'); |
NewerOlder