You are here

function library_trigger_info in Library 7

Implements hook_hook_info().

File

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

Code

function library_trigger_info() {
  $triggers = array();
  foreach (library_actions() as $aid => $action) {
    $key = 'library_after_' . library_clean_action_name($action['name']);
    $triggers[$key] = array(
      'label' => t('After a @action', array(
        '@action' => $action['name'],
      )),
    );
  }
  return array(
    'library' => $triggers,
  );
}