function _bootstrap_iconize_button

8.x-3.x deprecated.php _bootstrap_iconize_button(array &$element)
7.x-3.x common.inc _bootstrap_iconize_button(array &$element)

Adds an icon to button element based on its text value.

Parameters

array $element: The form element, passed by reference.

Related topics

Source includes/common.inc (line 1350)

function _bootstrap_iconize_button(array &$element) {
  if (bootstrap_setting('button_iconize') && _bootstrap_is_button($element) && ($icon = _bootstrap_iconize_text($element['#value']))) {
    $element['#icon'] = $icon;
  }
}