Commit a5ae9400 authored by Chris Shantz's avatar Chris Shantz
Browse files

added 2nd webhook so Nate can test race condition between Drupal and open...

added 2nd webhook so Nate can test race condition between Drupal and open data, this change is already in master it was added here to push early to production
parent 74fa462f
......@@ -1418,7 +1418,8 @@ function uw_ct_event_workbench_moderation_transition($node, $previous_state, $ne
if($node->type == 'uw_event' && $base_root == 'https://uwaterloo.ca') {
if($node->workbench_moderation['current']->current == TRUE && $node->workbench_moderation['current']->published == TRUE) {
drupal_http_request('https://api.uwaterloo.ca/v2/ping/news.json?key=9d05d46d1d02660f973eccda18c3cc45&type=event&site='.$path);
drupal_http_request('https://api.uwaterloo.ca/v2/ping/events.json?key=9d05d46d1d02660f973eccda18c3cc45&type=news&site='.$path.'&nid='.$node->nid, $options = array('timeout' => 5.0));
drupal_http_request('https://opendata-api3.uwaterloo.ca/v2/ping/events.json?key=9d05d46d1d02660f973eccda18c3cc45&type=event&site='.$path.'&nid='.$node->nid, $options = array('timeout' => 5.0));
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment