You are here

function _hansel_is_configurable_switch in Hansel breadcrumbs 8

Same name and namespace in other branches
  1. 7 hansel.module \_hansel_is_configurable_switch()

Check if the switch has a configuration form.

Parameters

string $handler:

Return value

bool

2 calls to _hansel_is_configurable_switch()
hansel_ui_config_switch_form in hansel_ui/hansel_ui.module
Generate the switch configuration form.
_hansel_ui_list_rules in hansel_ui/hansel_ui.module

File

./hansel.module, line 285
Hansel module

Code

function _hansel_is_configurable_switch($handler) {
  $types = _hansel_get_switch_types();
  if (!isset($types[$handler])) {
    return FALSE;
  }
  return !empty($types[$handler]['config form']);
}