function simplify_hide_text_format_element in Simplify 7.3
Same name and namespace in other branches
- 8 simplify.module \simplify_hide_text_format_element()
Hide a given text_format element.
1 string reference to 'simplify_hide_text_format_element'
- simplify_hide_text_format_elements in ./
simplify.module - Recurse through the provided form and hide any text_format elements.
File
- ./
simplify.module, line 690 - Simplifies the user interface by hiding particular fields.
Code
function simplify_hide_text_format_element($element) {
if (!empty($element['format'])) {
$element['format']['#attributes']['class'][] = 'element-invisible';
}
return $element;
}