You are here

function hosting_feature_node_types in Hosting 5

Same name and namespace in other branches
  1. 6.2 hosting.features.inc \hosting_feature_node_types()
  2. 7.4 hosting.features.inc \hosting_feature_node_types()
  3. 7.3 hosting.features.inc \hosting_feature_node_types()
1 call to hosting_feature_node_types()
hosting_node_grants in client/hosting_client.access.inc
Implementation of hook_node_grants().

File

./hosting.features.inc, line 124
Hosting features

Code

function hosting_feature_node_types($refresh = FALSE) {
  static $types;
  if (!is_array($types) || $refresh) {
    $features = hosting_get_features($refresh);
    foreach ($features as $feature => $info) {
      if ($info['node']) {
        $types[] = $info['node'];
      }
    }
  }
  return $types;
}