You are here

function og_vocab_rules_action_info in OG Vocabulary 6

Implementation of hook_rules_action_info().

File

./og_vocab.rules.inc, line 11
Rules integration for the og_vocab module.

Code

function og_vocab_rules_action_info() {
  $items['og_vocab_rules_action_assign_vocab'] = array(
    'label' => t('Assign vocabulary to group'),
    'arguments' => array(
      'group' => array(
        'type' => 'node',
        'label' => t('Group'),
      ),
      'taxonomy_vocab' => array(
        'type' => 'taxonomy_vocab',
        'label' => t('Taxonomy vocabulary that will be assigned to group'),
      ),
    ),
    'module' => 'Organic groups vocabulary',
  );
  $items['og_vocab_rules_action_remove_vocab'] = array(
    'label' => t('Remove vocabulary from group'),
    'arguments' => array(
      'taxonomy_vocab' => array(
        'type' => 'taxonomy_vocab',
        'label' => t('Taxonomy vocabulary that will removed from group'),
      ),
    ),
    'module' => 'Organic groups vocabulary',
  );
  $items['og_vocab_rules_action_remove_all_group'] = array(
    'label' => t('Remove all vocabulary from group'),
    'arguments' => array(
      'group' => array(
        'type' => 'node',
        'label' => t('Group'),
      ),
    ),
    'module' => 'Organic groups vocabulary',
  );
  return $items;
}