You are here

function library_action_info in Library 7

Same name and namespace in other branches
  1. 5.2 library.actions.inc \library_action_info()
  2. 6.2 library.actions.inc \library_action_info()
  3. 6 library.actions.inc \library_action_info()

Implements hook_action_info().

File

./library.actions.inc, line 28
Hooks into core Drupal actions module

Code

function library_action_info() {
  $triggers = array();
  foreach (library_actions() as $aid => $action) {
    $triggers[] = 'library_after_' . library_clean_action_name($action['name']);
  }
  return array(
    'library_send_email_action' => array(
      'label' => t('Send Library e-mail'),
      'type' => 'library',
      'configurable' => TRUE,
      'triggers' => $triggers,
    ),
    'library_renew_action' => array(
      'label' => t('Extend Library Item Due Date'),
      'type' => 'library',
      'configurable' => FALSE,
      'triggers' => $triggers,
    ),
    'library_anonymize_action' => array(
      'label' => t('Anonymize transactions for library item'),
      'type' => 'library',
      'configurable' => FALSE,
      'triggers' => $triggers,
    ),
  );
}