You are here

function editor_invoke_profiles in Editor 6

Same name and namespace in other branches
  1. 5 editor.module \editor_invoke_profiles()

Invokes hook_editor_profiles().

This hook provides modules with access to provide their own editor profiles.

@returns array Profiles

See also

editor_profile_create()

1 call to editor_invoke_profiles()
editor_profile_get in ./editor.module
Return a plugin type object or FALSE.

File

./editor.module, line 407
Extendable WYSIWYG editor @author Tj Holowaychuk <http://www.350designs.com/> @package Editor

Code

function editor_invoke_profiles() {
  static $profiles;
  require_once 'editor.profiles.inc';
  if (!isset($profiles)) {
    $profiles = module_invoke_all('editor_profiles');
    if (count($profiles)) {
      foreach ($profiles as &$profile) {
        $profile->profile_array = editor_profile_parse_string($profile->profile_string);
      }
    }
  }
  return $profiles;
}