You are here

function rb_user_rules_condition_info in Rules Bonus Pack 6

Implementation of hook_rules_condition_info().

File

./rb_user.module, line 12
Functions for extending user management with Rules.

Code

function rb_user_rules_condition_info() {

  // Add conditions only depending on required core modules.
  $conditions = array(
    'rb_user_condition_author_account' => array(
      'label' => t('Node author is an authenticated user'),
      'module' => 'Rules Bonus: User',
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Node to check'),
        ),
      ),
    ),
    'rb_user_condition_username_is_valid' => array(
      'label' => t('A string is valid user name'),
      'module' => 'Rules Bonus: User',
    ),
  );
  return $conditions;
}