Skip to main content
added 528 characters in body
Source Link
lordg
  • 705
  • 8
  • 19

I want to add a condition of what type of space is currently active on the site. Does anyone know of a module that supports this?

I notice that spaces is setting a context for us, but I cannot find the relevant plugin or set the condition up in Context UI.

function spaces_set_space($space = NULL) {
  static $active_space;
  if (isset($space)) {
    $active_space = $space;
    if (module_exists('context') && 
        $plugin = context_get_plugin('condition','spaces_type')
        ) {
        $plugin->execute($space);
    }
  }
  return isset($active_space) ? $active_space : FALSE;
}

I want to add a condition of what type of space is currently active on the site. Does anyone know of a module that supports this?

I want to add a condition of what type of space is currently active on the site. Does anyone know of a module that supports this?

I notice that spaces is setting a context for us, but I cannot find the relevant plugin or set the condition up in Context UI.

function spaces_set_space($space = NULL) {
  static $active_space;
  if (isset($space)) {
    $active_space = $space;
    if (module_exists('context') && 
        $plugin = context_get_plugin('condition','spaces_type')
        ) {
        $plugin->execute($space);
    }
  }
  return isset($active_space) ? $active_space : FALSE;
}
Source Link
lordg
  • 705
  • 8
  • 19

Adding a Space Context Condition

I want to add a condition of what type of space is currently active on the site. Does anyone know of a module that supports this?