You are here

function editor_profile_get in Editor 6

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

Return a plugin type object or FALSE.

1 call to editor_profile_get()
editor_attach in ./editor.module

File

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

Code

function editor_profile_get($prid) {
  $profiles = editor_invoke_profiles();
  if (count($profiles)) {
    foreach ($profiles as $i => $profile) {
      if ($profile->prid == $prid) {
        return $profile;
      }
    }
  }
  return FALSE;
}