You are here

function editor_profile_parse_string in Editor 6

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

Parase a profile string into a usable array of pid's and placeholders.

@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 223
Extendable WYSIWYG editor @author Tj Holowaychuk <http://www.350designs.com/> @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;
    }
  }
}