You are here

function space_og::activate in Spaces 7.3

Same name and namespace in other branches
  1. 6.3 spaces_og/plugins/space_og.inc \space_og::activate()
  2. 7 spaces_og/plugins/space_og.inc \space_og::activate()

Override of activate().

Overrides space_type_purl::activate

File

spaces_og/plugins/space_og.inc, line 28

Class

space_og
Organic groups integration for Spaces.

Code

function activate() {
  if (parent::activate()) {

    // TODO determine what replaces this in D7.
    // og_set_group_context($this->group);
    // og_set_language($this->group);
    // Handle theme switching for OG
    if (!empty($this->group->og_theme)) {
      global $custom_theme;
      $custom_theme = $this->group->og_theme;
    }
    return TRUE;
  }
  return FALSE;
}