You are here

function rules_get_element_info in Rules 6

Returns the cached element info of the element.

13 calls to rules_get_element_info()
rules_admin_new_variables_form in rules_admin/rules_admin.rule_forms.inc
Returns form elements for new variables
rules_admin_rule_proxy::element_get_new_variables in rules_admin/rules_admin.rule_proxy.inc
Gets info about all new defined variables by the given element
rules_admin_save_element_label in rules_admin/rules_admin.rule_forms.inc
Saves the element label.
rules_core_action_execute in rules/modules/rules.rules.inc
Action implementation: Execute a core action
rules_core_action_execute_form in rules/modules/rules.rules.inc
Action form implementation: Get the core actions form

... See full list

File

rules/rules.module, line 564
Rules engine module

Code

function rules_get_element_info(&$element) {
  rules_init_element_info($element);
  if (isset($element['#info'])) {
    return $element['#info'] + array(
      'arguments' => array(),
      'new variables' => array(),
      'hidden' => FALSE,
      'eval input' => array(),
      'label callback' => $element['#name'] . '_label',
    );
  }
}