You are here

function calendar_systems_profile_load_all in Calendar Systems 6

Same name and namespace in other branches
  1. 6.3 calendar_systems.module \calendar_systems_profile_load_all()

Gets list of active profiles

2 calls to calendar_systems_profile_load_all()
calendar_systems_get_calendar_instance in ./calendar_systems.module
Gets an instance of the calendar object for the selected calendar system acording to the settings
calendar_systems_profile_overview in ./calendar_systems.admin.inc
Display overview of setup Calendar systems Editor profiles; menu callback.

File

./calendar_systems.module, line 169

Code

function calendar_systems_profile_load_all() {
  static $profiles;
  if (!isset($profiles)) {
    $profiles = array();
    $result = db_query('SELECT language, calendar_system, settings FROM {calendar_systems}');
    while ($profile = db_fetch_object($result)) {
      $profile->settings = unserialize($profile->settings);
      $profiles[$profile->language] = $profile;
    }
  }
  return $profiles;
}