You are here

function spaces_settings in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces.module \spaces_settings()
  2. 6 spaces.module \spaces_settings()
  3. 6.2 spaces.module \spaces_settings()
3 calls to spaces_settings()
spaces_features_form in ./spaces_admin.inc
Define form for controlling features
spaces_features_form_submit in ./spaces_admin.inc
Submit handler for spaces features form
spaces_setting in ./spaces.module
Return the value of an spaces setting.

File

./spaces.module, line 803

Code

function spaces_settings($gid = -1) {
  if ($gid == -1) {
    static $settings;
    if (!$settings) {
      $settings = array();
      foreach (module_implements('spaces_settings') as $module) {
        $function = $module . '_spaces_settings';
        $settings = array_merge($settings, $function());
      }
    }
    return $settings;
  }
  else {
    return spaces_features($gid, 'settings');
  }
}