You are here

function profanity_rules_condition_info in Profanity 7

Implements hook_rules_condition_info().

File

./profanity.rules.inc, line 10
Rules {profanity} file.

Code

function profanity_rules_condition_info() {
  return array(
    'profanity_rules_match_lists' => array(
      'label' => t('Detect profanity'),
      'parameter' => array(
        'lists' => array(
          'label' => t('Lists to apply'),
          'type' => 'list<text>',
          'options list' => 'profanity_get_lists_flat',
        ),
        'text' => array(
          'label' => t('Text'),
          'type' => 'text',
        ),
      ),
      'group' => t('Profanity'),
    ),
  );
}