You are here

function rules_retrieve_element_info in Rules 6

Retrieves the element (actions, conditions,..) info.

3 calls to rules_retrieve_element_info()
rules_admin_default_argument_form in rules_admin/rules_admin.rule_forms.inc
Returns the argument form for the given element
rules_admin_element_help in rules_admin/rules_admin.inc
Shows the element help
rules_init_element_info in rules/rules.module
Initiates the element info property (#info) of an element (actions, conditions,..).

File

rules/rules.module, line 549
Rules engine module

Code

function rules_retrieve_element_info(&$element) {
  $element_copy = $element;
  _rules_element_defaults($element_copy);
  if (isset($element_copy['#info']) && isset($element['#name'])) {
    if ($info = rules_gather_data('rules_' . $element['#type'] . '_info', $element['#name'])) {
      return $info;
    }
    rules_error_missing_implementation($element);
  }
}