You are here

function simplify_hide_text_format_element in Simplify 8

Same name and namespace in other branches
  1. 7.3 simplify.module \simplify_hide_text_format_element()

Hide a given text_format element.

Parameters

array $element: The element to hide.

Return value

array The hidden 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 606
Hooks implemented by the simplify module.

Code

function simplify_hide_text_format_element(array $element) {
  if (!empty($element['format'])) {
    $element['format']['#attributes']['class'][] = 'hidden';
  }
  return $element;
}