function editor_profile_get in Editor 5
Same name and namespace in other branches
- 6 editor.module \editor_profile_get()
Get a plugin profile object.
Parameters
int $prid: Profile id
Return value
mixed
- success: Profile object
- failure: FALSE
1 call to editor_profile_get()
- editor_attach in ./
editor.module - Initialize the editor attachment process.
File
- ./
editor.module, line 274 - Extendable WYSIWYG editor @author Tj Holowaychuk <tj@vision-media.ca> @link http://vision-media.ca @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;
}