You are here

function spaces_content_types in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces.module \spaces_content_types()
  2. 6 spaces.module \spaces_content_types()

Returns a content type => features map

4 calls to spaces_content_types()
spaces_requirements in ./spaces.module
Implementation of hook_requirements
spaces_router in ./spaces.module
Consolidated group context routing logic.
_spaces_enforce_feature in ./spaces.module
API function that enforces OG group and privacy settings on a node.
_spaces_og_group_options in ./spaces.module
Generates an array of groups that a node could potentially be a member of based on enabled spaces features and optionally the specified user's groups

File

./spaces.module, line 1005

Code

function spaces_content_types() {
  static $map;
  if (!$map) {
    $map = array();
    $features = spaces_features();
    foreach ($features as $id => $feature) {
      if (is_array($feature->node)) {
        foreach ($feature->node as $type) {
          $map[$type] = $id;
        }
      }
    }
  }
  return $map;
}