Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_ct_service
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_ct_service
Merge requests
!1
FDSU-861: fix web hooks due to changes in upstream contrib module workbench_moderation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
FDSU-861: fix web hooks due to changes in upstream contrib module workbench_moderation
FDSU-861_fix-web-hooks-workbench_moderation
into
master
Overview
0
Commits
1
Pipelines
0
Changes
Merged
Nathan Vexler
requested to merge
FDSU-861_fix-web-hooks-workbench_moderation
into
master
9 years ago
Overview
0
Commits
1
Pipelines
0
Changes
-
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
e534e867
1 commit,
9 years ago
+
6
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
uw_ct_service.module
+
6
−
3
Options
@@ -617,11 +617,14 @@ function uw_ct_service_preprocess_html(&$variables) {
function uw_ct_service_workbench_moderation_transition($node, $previous_state, $new_state) {
global $base_root;
$path = trim(base_path(), '/');
if($node->type == 'uw_service' && $base_root == 'https://uwaterloo.ca') {
if($node->workbench_moderation['current']->current == TRUE && $node->workbench_moderation['current']->published == TRUE) {
$current = (property_exists($node->workbench_moderation['current'], 'current') && $node->workbench_moderation['current']->current == TRUE);
$is_current = (property_exists($node->workbench_moderation['current'], 'is_current') && $node->workbench_moderation['current']->is_current == TRUE);
$is_published = (property_exists($node->workbench_moderation['current'], 'published') && $node->workbench_moderation['current']->published == TRUE);
if ($node->type === 'uw_service' && $base_root === 'https://uwaterloo.ca') {
if (($current || $is_current) && $is_published) {
uw_value_lists_uw_api_query('v2/ping/services.json', array('type' => 'services', 'site' => $path, 'nid' => $node->nid));
}
}
}
}
function uw_ct_service_audience_taxonomy_tree($tid) {
Loading