function trigger_test_action_info

Implements hook_action_info().

File

modules/trigger/tests/trigger_test.module, line 11

Code

function trigger_test_action_info() {
    // Register an action that can be assigned to the trigger "cron".
    return array(
        'trigger_test_system_cron_action' => array(
            'type' => 'system',
            'label' => t('Cron test action'),
            'configurable' => FALSE,
            'triggers' => array(
                'cron',
            ),
        ),
        'trigger_test_system_cron_conf_action' => array(
            'type' => 'system',
            'label' => t('Cron test configurable action'),
            'configurable' => TRUE,
            'triggers' => array(
                'cron',
            ),
        ),
        'trigger_test_generic_action' => array(
            'type' => 'system',
            'label' => t('Generic test action'),
            'configurable' => FALSE,
            'triggers' => array(
                'taxonomy_term_insert',
                'taxonomy_term_update',
                'taxonomy_delete',
                'comment_insert',
                'comment_update',
                'comment_delete',
                'user_insert',
                'user_update',
                'user_delete',
                'user_login',
                'user_logout',
                'user_view',
            ),
        ),
        'trigger_test_generic_any_action' => array(
            'type' => 'system',
            'label' => t('Generic test action for any trigger'),
            'configurable' => FALSE,
            'triggers' => array(
                'any',
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.