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;
}