You are here

function library_get_action in Library 6

Same name and namespace in other branches
  1. 5.2 library.module \library_get_action()
  2. 6.2 library.module \library_get_action()
  3. 7 library.module \library_get_action()
3 calls to library_get_action()
library_action_access in ./library.module
library_admin_action in ./library.admin.inc
Menu callback: Edit Library Action.
library_transaction_form in ./library.pages.inc
@file Functions for generating page displays related to the library module

File

./library.module, line 1132

Code

function library_get_action($aid) {
  if (!empty($aid)) {
    if (is_numeric($aid)) {
      $action = db_fetch_object(db_query('SELECT * FROM {library_actions} WHERE aid = %d', $aid));
      if ($action) {
        return $action;
      }
    }
  }
  return FALSE;
}