Skip to content

Commit

Permalink
CAW-591: Adding subsite-nid to css classes in case of name changing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sherakama committed Jul 8, 2015
1 parent 0bb2350 commit 7865557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stanford_subsites.module
Original file line number Diff line number Diff line change
Expand Up @@ -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'], "<front>");
$vars["classes_array"][] = "subsite-is-active";
$vars['classes_array'][] = "subsite-" . $subsite_node->nid;

// Add the subsite to the css classes array.
$full_name = "subsite-";
Expand Down

0 comments on commit 7865557

Please sign in to comment.