You are here

function termstatus_action_info in Taxonomy Term Status 7

Implements hook_action_info().

File

./termstatus.module, line 58
Hook implementations and API for the taxonomy term status module.

Code

function termstatus_action_info() {
  return array(
    'termstatus_publish_action' => array(
      'type' => 'taxonomy_term',
      'label' => t('Publish taxonomy term'),
      'configurable' => FALSE,
      'behavior' => array(
        'changes_property',
      ),
      'triggers' => array(
        'taxonomy_term_presave',
        'taxonomy_term_insert',
        'taxonomy_term_update',
        'taxonomy_term_delete',
      ),
    ),
    'termstatus_unpublish_action' => array(
      'type' => 'taxonomy_term',
      'label' => t('Unpublish taxonomy term'),
      'configurable' => FALSE,
      'behavior' => array(
        'changes_property',
      ),
      'triggers' => array(
        'taxonomy_term_presave',
        'taxonomy_term_insert',
        'taxonomy_term_update',
        'taxonomy_term_delete',
      ),
    ),
  );
}