You are here

function _webform_icheck_get_options in Webform 6.x

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

Get the iCheck style options.

Return value

array The iCheck style options.

2 calls to _webform_icheck_get_options()
webform_icheck_webform_admin_third_party_settings_form_alter in modules/webform_icheck/webform_icheck.module
Implements hook_webform_admin_third_party_settings_form_alter().
webform_icheck_webform_element_configuration_form_alter in modules/webform_icheck/webform_icheck.module
Implements hook_webform_element_configuration_form_alter().

File

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

Code

function _webform_icheck_get_options() {
  return [
    (string) t('Minimal') => [
      'minimal' => t('Minimal: Black'),
      'minimal-grey' => t('Minimal: Grey'),
      'minimal-yellow' => t('Minimal: Yellow'),
      'minimal-orange' => t('Minimal: Orange'),
      'minimal-red' => t('Minimal: Red'),
      'minimal-pink' => t('Minimal: Pink'),
      'minimal-purple' => t('Minimal: Purple'),
      'minimal-blue' => t('Minimal: Blue'),
      'minimal-green' => t('Minimal: Green'),
      'minimal-aero' => t('Minimal: Aero'),
    ],
    (string) t('Square') => [
      'square' => t('Square: Black'),
      'square-grey' => t('Square: Grey'),
      'square-yellow' => t('Square: Yellow'),
      'square-orange' => t('Square: Orange'),
      'square-red' => t('Square: Red'),
      'square-pink' => t('Square: Pink'),
      'square-purple' => t('Square: Purple'),
      'square-blue' => t('Square: Blue'),
      'square-green' => t('Square: Green'),
      'square-aero' => t('Square: Aero'),
    ],
    (string) t('Flat') => [
      'flat' => t('Flat: Black'),
      'flat-grey' => t('Flat: Grey'),
      'flat-yellow' => t('Flat: Yellow'),
      'flat-orange' => t('Flat: Orange'),
      'flat-red' => t('Flat: Red'),
      'flat-pink' => t('Flat: Pink'),
      'flat-purple' => t('Flat: Purple'),
      'flat-blue' => t('Flat: Blue'),
      'flat-green' => t('Flat: Green'),
      'flat-aero' => t('Flat: Aero'),
    ],
    (string) t('Line') => [
      'line' => t('Line: Black'),
      'line-grey' => t('Line: Grey'),
      'line-yellow' => t('Line: Yellow'),
      'line-orange' => t('Line: Orange'),
      'line-red' => t('Line: Red'),
      'line-pink' => t('Line: Pink'),
      'line-purple' => t('Line: Purple'),
      'line-blue' => t('Line: Blue'),
      'line-green' => t('Line: Green'),
      'line-aero' => t('Line: Aero'),
    ],
  ];
}