function wysiwyg_get_profile in Wysiwyg 7.2
Same name and namespace in other branches
- 5.2 wysiwyg.module \wysiwyg_get_profile()
- 5 wysiwyg.module \wysiwyg_get_profile()
- 6.2 wysiwyg.module \wysiwyg_get_profile()
- 6 wysiwyg.module \wysiwyg_get_profile()
Determine the profile to use for a given input format id.
This function also performs sanity checks for the configured editor in a profile to ensure that we do not load a malformed editor.
Parameters
$format: The internal id of an input format.
Return value
A wysiwyg profile.
See also
wysiwyg_load_editor(), wysiwyg_get_editor()
3 calls to wysiwyg_get_profile()
- wysiwyg_features_export in ./
wysiwyg.features.inc - Implements hook_features_export().
- wysiwyg_features_export_render in ./
wysiwyg.features.inc - Implements hook_features_export_render().
- wysiwyg_pre_render_text_format in ./
wysiwyg.module - Process a text format widget to load and attach editors.
File
- ./
wysiwyg.module, line 338
Code
function wysiwyg_get_profile($format) {
if ($profile = wysiwyg_profile_load($format)) {
if (wysiwyg_load_editor($profile)) {
return $profile;
}
}
return FALSE;
}