function layouter_active_text_formats in Layouter - WYSIWYG layout templates 7
Gets the list of text formats for which Layouter is enabled.
Return value
array Array of allowed formats.
1 call to layouter_active_text_formats()
- layouter_text_format_pre_render in ./
layouter.module - Processes textarea element if it is allowed to enable Layouter.
File
- includes/
layouter.inc, line 201 - Functions for layout processing.
Code
function layouter_active_text_formats() {
$layouter_text_formats = variable_get('layouter_text_formats', array());
$text_formats_enabled = array();
if ($layouter_text_formats) {
foreach ($layouter_text_formats as $text_format) {
if ($text_format) {
$text_formats_enabled[] = $text_format;
}
}
}
return $text_formats_enabled;
}