You are here

function biblio_perm in Bibliography Module 6

Same name and namespace in other branches
  1. 5 biblio.module \biblio_perm()
  2. 6.2 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 425

Code

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