You are here

function webform_component_property in Webform 7.4

Get a component property from the component definition.

See also

hook_webform_component_info()

6 calls to webform_component_property()
callback_webform_conditional_rule_value_form in ./webform.api.php
Define a form element that configures your operator.
WebformConditionals::executeConditionals in includes/webform.webformconditionals.inc
Executes the conditionals on a submission.
webform_component_delete_form in includes/webform.components.inc
Form to confirm deletion of a component.
webform_conditional_form_select in includes/webform.conditionals.inc
Form callback for select-type conditional fields.
webform_conditional_prepare_javascript in includes/webform.conditionals.inc
Loop through all the conditional settings and add needed JavaScript settings.

... See full list

File

includes/webform.components.inc, line 1023
Webform module component handling.

Code

function webform_component_property($type, $property) {
  $components = webform_components();
  $defaults = array(
    'conditional_type' => 'string',
  );
  return isset($components[$type][$property]) ? $components[$type][$property] : $defaults[$property];
}