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 | |
/** | |
* @file | |
* Repairs the date mode dates. | |
* | |
* Requires the fundraiser_recurring table to be populated | |
* and the uc_orders table to have at least order_id and created columns. | |
* | |
* Run with something like "drush php-script save_the_day.php > results.txt" | |
*/ |
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
/** | |
* Refresh queue item VBO action. | |
*/ | |
function salesforce_queue_salesforce_queue_item_refresh_item_action($item) { | |
// Let the individual modules handle the actual object refreshing and queuing. | |
// Check for a TRUE return value because we'll want to leave the item | |
// alone if it is not requeued successfully. | |
if (module_invoke_all('salesforce_queue_refresh_queue_item', $item)) { | |
// Force the item back into the new queue. | |
db_query("UPDATE {saleforce_queue} SET queue = 'new', retries = 0 WHERE item_id = :item_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
<?php | |
// Create and log in a user that has access to the queue log report. | |
$this->privileged_user = $this->drupalCreateUser(array( | |
'view salesforce batch logs', | |
)); | |
$this->drupalLogin($this->privileged_user); | |
$this->drupalGet('admin/reports/salesforce/queue'); | |
$this->assertNoOptionSelected('edit-operation', 'action::salesforce_queue_salesforce_queue_item_refresh_item_action', 'Refresh VBO action exists but is not selected.'); |
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 | |
class SpringboardSocialUpdradePathTestCase extends UpdatePathTestCase { | |
public static function getInfo() { | |
return array( | |
'name' => 'Springboard Social update path', | |
'description' => 'Tests update from 4.4 to 4.5.', | |
'group' => 'Update path', | |
); |
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
/** | |
* Title callback used to change the menu titles based on whether a user gets | |
* the Springboard admin UI. | |
* | |
* @param $original_title | |
* Original title for users who do not get the Springboard admin ui. | |
* | |
* @param $new_title | |
* Replacement title for users who get the the Springboard admin ui. | |
*/ |
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
{ | |
"alert_id":"54c2ad5f978b5", | |
"contact":{ | |
"id":10, | |
"firstName":"Joe", | |
"lastName":"Joe", | |
"email":"[email protected]" | |
}, | |
"messages":{ | |
"54c2ad5f978a8":{ |
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
{ | |
"contact":{ | |
"id":10, | |
"firstName":"Joe", | |
"lastName":"Joe", | |
"email":"[email protected]" | |
}, | |
"messages":{ | |
"54c2b1632a91d":{ | |
"alert_id":"54c2b1632a931", |
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
{ | |
"alert_id":"54c6a5784a5cf", | |
"contact":{ | |
"id":10, | |
"firstName":"Joe", | |
"lastName":"Joe", | |
"email":"[email protected]" | |
}, | |
"messages":[ | |
{ |
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
{ | |
"alert_id":"54c6a763c00d7", | |
"contact":{ | |
"id":10, | |
"firstName":"Joe", | |
"lastName":"Joe", | |
"email":"[email protected]" | |
}, | |
"messages":[ | |
{ |
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
/** | |
* Takes a set of messages and converts them to target messages | |
* based on how many deliverable targets were resolved. | |
* | |
* @param array $alert | |
* An array of messages from target resolution or direct API call. | |
*/ | |
function grindMessages($alert) { | |
$target_messages = array(); |
OlderNewer