You are here

function _webform_icheck_is_supported in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_icheck/webform_icheck.module \_webform_icheck_is_supported()

Check if element support iCheck.

Parameters

string $element_type: An element type.

Return value

bool TRUE if element support iCheck.

3 calls to _webform_icheck_is_supported()
webform_icheck_webform_element_alter in modules/webform_icheck/webform_icheck.module
Implements hook_webform_element_alter().
webform_icheck_webform_element_configuration_form_alter in modules/webform_icheck/webform_icheck.module
Implements hook_webform_element_configuration_form_alter().
webform_icheck_webform_element_default_properties_alter in modules/webform_icheck/webform_icheck.module
Implements hook_webform_element_default_properties_alter().

File

modules/webform_icheck/webform_icheck.module, line 135
Provides support for highly customizable checkboxes and radio buttons.

Code

function _webform_icheck_is_supported($element_type) {
  $element_types = [
    'checkbox',
    'checkboxes',
    'radios',
    'tableselect',
    'webform_checkboxes_other',
    'webform_radios_other',
    'webform_entity_checkboxes',
    'webform_entity_radios',
    'webform_likert',
    'webform_same',
    'webform_tableselect_sort',
    'webform_term_checkboxes',
  ];
  return in_array($element_type, $element_types);
}