You are here

function webform_conditional_action_able in Webform 7.4

Determine whether a component type is capable of a given conditional action.

1 call to webform_conditional_action_able()
webform_conditionals_form_validate in includes/webform.conditionals.inc
Validate handler for webform_conditionals_form().

File

includes/webform.conditionals.inc, line 1505
Form elements and menu callbacks to provide conditional handling in Webform.

Code

function webform_conditional_action_able($component_type, $action) {
  switch ($action) {
    case 'show':
      return TRUE;
    case 'require':
      return webform_component_feature($component_type, 'required');
    default:
      return webform_component_feature($component_type, "conditional_action_{$action}");
  }
}