You are here

function rules_conditional_test_rules_plugin_info in Conditional Rules 7

Same name and namespace in other branches
  1. 8 tests/rules_conditional_test.module \rules_conditional_test_rules_plugin_info()

Implements hook_rules_plugin_info().

File

tests/rules_conditional_test.module, line 10
Testing module.

Code

function rules_conditional_test_rules_plugin_info() {
  return array(
    'stub conditional' => array(
      'label' => 'Stub conditional',
      'class' => 'RulesConditionalTestStubContainer',
      'embeddable' => 'RulesActionContainer',
      'extenders' => array(
        'RulesPluginUIInterface' => array(
          'class' => 'RulesConditionalEmptyUI',
        ),
      ),
    ),
    'stub conditional element' => array(
      'label' => 'Stub conditional element',
      'class' => 'RulesConditionalTestStubElement',
      'embeddable' => 'RulesConditionalTestStubContainer',
      'extenders' => array(
        'RulesPluginUIInterface' => array(
          'class' => 'RulesPluginUI',
        ),
      ),
    ),
    'stub conditional default element' => array(
      'label' => 'Stub conditional default element',
      'class' => 'RulesConditionalTestStubDefaultElement',
      'embeddable' => 'RulesConditionalTestStubContainer',
      'extenders' => array(
        'RulesPluginUIInterface' => array(
          'class' => 'RulesPluginUI',
        ),
      ),
    ),
    'stub conditional single element' => array(
      'label' => 'Stub single element',
      'class' => 'RulesConditionalTestStubSingleElement',
      'embeddable' => 'RulesConditionalTestStubContainer',
      'conditional single' => TRUE,
      'extenders' => array(
        'RulesPluginUIInterface' => array(
          'class' => 'RulesPluginUI',
        ),
      ),
    ),
    'stub conditional dependent element' => array(
      'label' => 'Stub dependent element',
      'class' => 'RulesConditionalTestStubDependentElement',
      'embeddable' => 'RulesConditionalTestStubContainer',
      'conditional depends' => array(
        'stub conditional element',
      ),
      'extenders' => array(
        'RulesPluginUIInterface' => array(
          'class' => 'RulesPluginUI',
        ),
      ),
    ),
    'stub conditional predicate element' => array(
      'label' => 'Stub predicate element',
      'class' => 'RulesConditionalTestStubPredicateElement',
      'embeddable' => 'RulesActionContainer',
      'extenders' => array(
        'RulesPluginUIInterface' => array(
          'class' => 'RulesConditionalPredicateUI',
        ),
      ),
    ),
  );
}