You are here

function _maxlength_is_supported_widget in Maxlength 6.2

Decides if the given widget is supported or not

Parameters

Widget machine-readable name:

Return value

TRUE if supported, FALSE if not

2 calls to _maxlength_is_supported_widget()
maxlength_form_alter in ./maxlength.module
Implementation of hook_form_alter().
_maxlength_content_form_alter in ./maxlength.inc
@file Business logic for maxlength

File

./maxlength.inc, line 62
Business logic for maxlength

Code

function _maxlength_is_supported_widget($widget) {
  $supported = array(
    'text_textfield',
    'text_textarea',
  );
  return in_array($widget, $supported);
}