function editor_profile_parse_string in Editor 5
Same name and namespace in other branches
- 6 editor.module \editor_profile_parse_string()
Parase a profile string into a usable array of pid's and placeholders.
@todo: document @todo: rename profile_string and profile_array
Return value
array
1 call to editor_profile_parse_string()
- editor_invoke_profiles in ./
editor.module - Invokes hook_editor_profiles().
File
- ./
editor.module, line 326 - Extendable WYSIWYG editor @author Tj Holowaychuk <tj@vision-media.ca> @link http://vision-media.ca @package Editor
Code
function editor_profile_parse_string($profile_string) {
if (is_string($profile_string)) {
if ($profile_array = preg_split('/[\\s,]+/', $profile_string)) {
return $profile_array;
}
else {
return FALSE;
}
}
}