1 ckeditor.admin.inc _ckeditor_settings_stringify_style_list(array $style_list = NULL)

Convert the stored array of styles into a string for editing.

Parameters

array $style_list: The style list as returned by _ckeditor_settings_parse_style_list().

Return value

string: The string representation of the style list.

File

core/modules/ckeditor/ckeditor.admin.inc, line 148
Admin page callbacks for the CKEditor module.

Code

function _ckeditor_settings_stringify_style_list(array $style_list = NULL) {
  $string = '';
  if ($style_list) {
    foreach ($style_list as $style) {
      $string .= $style['element'] . '.' . $style['attributes']['class'] . '|' . $style['name'] . "\n";
    }
  }
  return $string;
}