You are here

function library_hook_info in Library 6

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

Implementation of hook_hook_info()

File

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

Code

function library_hook_info() {
  $op = array();
  foreach (library_actions() as $aid => $action) {
    $op['after_' . library_clean_action_name($action['name'])] = array(
      'runs when' => t('After a ' . $action['name']),
    );
  }
  return array(
    'library' => array(
      'library' => $op,
    ),
  );
}