You are here

function wysiwyg_profile_load_all in Wysiwyg 5.2

Same name and namespace in other branches
  1. 6.2 wysiwyg.module \wysiwyg_profile_load_all()
  2. 7.2 wysiwyg.module \wysiwyg_profile_load_all()

Load all profiles.

1 call to wysiwyg_profile_load_all()
wysiwyg_profile_overview in ./wysiwyg.admin.inc
Display overview of setup Wysiwyg Editor profiles; menu callback.

File

./wysiwyg.module, line 590
Integrate client-side editors with Drupal.

Code

function wysiwyg_profile_load_all() {
  static $profiles;
  if (!isset($profiles)) {
    $profiles = array();
    $result = db_query('SELECT format, editor, settings FROM {wysiwyg}');
    while ($profile = db_fetch_object($result)) {
      $profile->settings = unserialize($profile->settings);
      $profiles[$profile->format] = $profile;
    }
  }
  return $profiles;
}