You are here

function library_perm in Library 6

Same name and namespace in other branches
  1. 5.2 library.module \library_perm()
  2. 6.2 library.module \library_perm()

Valid permissions for this module

Return value

array An array of valid permissions for this module

File

./library.module, line 73

Code

function library_perm() {
  $permissions = array(
    'administer library',
    'administer transactions',
    'view library history',
    'view own library history',
  );
  foreach (library_actions() as $aid => $action) {
    $permissions[] = 'submit library ' . $action['name'];
  }
  return $permissions;
}