You are here

function pcp_rules_condition_info in Profile Complete Percent 7

Same name and namespace in other branches
  1. 5 pcp.module \pcp_rules_condition_info()
  2. 6.2 pcp.module \pcp_rules_condition_info()

Implements hook_rules_condition_info().

File

./pcp.rules.inc, line 11
Integrate rule modules with pcp.

Code

function pcp_rules_condition_info() {
  $conditions = array();
  $conditions['pcp_profile_is_completed'] = array(
    'label' => t('User profile is completed'),
    'parameter' => array(
      'account' => array(
        'label' => t('User'),
        'type' => 'user',
      ),
    ),
    'group' => t('User'),
    'callbacks' => array(
      'execute' => 'pcp_rules_profile_is_completed',
    ),
  );
  return $conditions;
}