You are here

function library_action_info in Library 6

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. 7 library.actions.inc \library_action_info()

Implementation of hook_action_info().

File

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

Code

function library_action_info() {
  $hooks = array();
  foreach (library_actions() as $aid => $action) {
    $hooks[] = 'after_' . library_clean_action_name($action['name']);
  }
  return array(
    'library_send_email_action' => array(
      'description' => t('Send Library e-mail'),
      'type' => 'library',
      'configurable' => TRUE,
      'hooks' => array(
        'library' => $hooks,
      ),
    ),
    'library_renew_action' => array(
      'description' => t('Extend Library Item Due Date'),
      'type' => 'library',
      'configurable' => FALSE,
      'hooks' => array(
        'library' => $hooks,
      ),
    ),
  );
}