You are here

function spaces_features_items in Spaces 6.2

Returns an array of items of a given type that belong to a given feature.

2 calls to spaces_features_items()
space_customizer_block::form in ./spaces.spaces.inc
Implementation of form().
space_customizer_menu::form in ./spaces.spaces.inc

File

./spaces.module, line 1222

Code

function spaces_features_items($type, $feature) {
  $features = spaces_features();
  if (!empty($features[$feature]) && !empty($features[$feature]->info['features'][$type])) {
    return $features[$feature]->info['features'][$type];
  }
  return array();
}