You are here

function rules_error_missing_implementation in Rules 6

Shows an error message, that a module is missing.

Parameters

$element The element, for which the implementation is missing:

2 calls to rules_error_missing_implementation()
rules_element_invoke in rules/rules.module
Invokes an element specific function. E.g. this is used for invoking actions.
rules_retrieve_element_info in rules/rules.module
Retrieves the element (actions, conditions,..) info.

File

rules/rules.module, line 891
Rules engine module

Code

function rules_error_missing_implementation($element) {
  if (isset($element['#info']) && $element['#info']) {
    $msg = t('Unable to find "@type" of name "@name" with the label "@label". Perhaps the according module has been deactivated.', array(
      '@type' => $element['#type'],
      '@name' => $element['#name'],
      '@label' => rules_get_element_label($element),
    ));
  }
  else {
    $msg = t('Unable to find "@type" of name "@name". Perhaps the according module has been deactivated.', array(
      '@type' => $element['#type'],
      '@name' => $element['#name'],
    ));
  }
  rules_log($msg, TRUE);
}