You are here

function biblio_perm in Bibliography Module 5

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_perm()
  2. 6 biblio.module \biblio_perm()

Implementation of hook_perm().

Since we are limiting the ability to create new nodes to certain users, we need to define what those permissions are here. We also define a permission to allow users to edit the nodes they created.

File

./biblio.module, line 132

Code

function biblio_perm() {
  return array(
    'create biblio',
    'edit all biblio entries',
    'edit own biblio entries',
    'import from file',
    'show export links',
    'show own download links',
    'show download links',
    'show filter tab',
    'show sort links',
    'input full text',
    'view full text',
  );
}