You are here

function spaces_settings in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces.module \spaces_settings()
  2. 6 spaces.module \spaces_settings()
  3. 6.2 spaces.module \spaces_settings()

Retrieve all available settings.

Parameters

$reset: Optional boolean flag for resetting the static cache.

Return value

Keyed array of potential settings.

5 calls to spaces_settings()
spaces_features_form_submit in ./spaces_admin.inc
Submit handler for spaces features form
spaces_features_form_validate in ./spaces_admin.inc
Validate handler for spaces features form
spaces_preset_form_submit in ./spaces_admin.inc
Submit handler for spaces preset form.
spaces_save in ./spaces.module
Saves a space object's feature/setting values.
_spaces_features_form in ./spaces_admin.inc
Core form for controlling features / settings

File

./spaces.module, line 974

Code

function spaces_settings($reset = FALSE) {
  static $settings;
  if (!isset($settings) || $reset) {
    $settings = array();
    foreach (module_implements('spaces_settings') as $module) {
      $function = $module . '_spaces_settings';
      $settings = array_merge($settings, $function());
    }
  }
  return $settings;
}