function _ckeditor_styleset_options in CKEditor Styles (for WYSIWYG) 7
Helper function to get an options array for selectable stylesets.
1 call to _ckeditor_styleset_options()
- ckeditor_styles_rule_ctools_export_ui_form in plugins/
export_ui/ ckeditor_style_rules.inc - UI form for the ckeditor_styles configuration.
File
- plugins/
export_ui/ ckeditor_style_rules.inc, line 78
Code
function _ckeditor_styleset_options() {
$options = array(
'-all-' => t('- All wysiwyg ckeditor profiles-'),
);
$profiles = wysiwyg_profile_load_all();
$formats = filter_formats();
// Select only those profiles, that are using ckeditor and a valid format is
// associated
foreach ($profiles as $profile) {
if ($profile->editor == 'ckeditor' && isset($formats[$profile->format])) {
$options[$profile->format] = $formats[$profile->format]->name;
}
}
return $options;
}