From 7865557ddda8f2b8e7ddcc78e6e9cb1c0d83979f Mon Sep 17 00:00:00 2001 From: Shea McKinney Date: Wed, 8 Jul 2015 16:04:36 -0700 Subject: [PATCH] CAW-591: Adding subsite-nid to css classes in case of name changing. --- stanford_subsites.module | 1 + 1 file changed, 1 insertion(+) diff --git a/stanford_subsites.module b/stanford_subsites.module index 1f36b13..92cbb76 100755 --- a/stanford_subsites.module +++ b/stanford_subsites.module @@ -168,6 +168,7 @@ function stanford_subsites_preprocess_html(&$vars, $hook) { $vars['subsite_site_name_text'] = $subsite_node->{SUBSITE_NAME_FIELD}[LANGUAGE_NONE][0]["safe_value"]; $vars['subsite_site_name_html'] = l($vars['subsite_site_name_text'], ""); $vars["classes_array"][] = "subsite-is-active"; + $vars['classes_array'][] = "subsite-" . $subsite_node->nid; // Add the subsite to the css classes array. $full_name = "subsite-";