You are here

function rb_misc_condition_get_plugin_info in Rules Bonus Pack 7

Gets plugin information for a single component.

2 calls to rb_misc_condition_get_plugin_info()
rb_misc_conditions_get_child in plugins/access/rb_misc_conditions.inc
Describe a single plugin.
rb_misc_conditions_get_children in plugins/access/rb_misc_conditions.inc
Describe all child plugins this pluing provides.

File

plugins/access/rb_misc_conditions.inc, line 97
Plugin to create access plugins from Rules condition components.

Code

function rb_misc_condition_get_plugin_info($parent, $name, $component) {
  return array(
    'title' => t("Rules: @label", array(
      '@label' => $component
        ->label(),
    )),
    'name' => $parent . ':' . $name,
    'callback' => 'rb_misc_conditions_evaluate',
    'settings form' => 'rb_misc_conditions_form',
    'summary' => 'rb_misc_conditions_summary',
    'keyword' => $component->name,
    'required context' => rb_misc_conditions_build_required_contexts($component),
  );
}