function tripal_project_permission

2.x tripal_project.module tripal_project_permission()
3.x tripal_project.module tripal_project_permission()

Implements hook_permission()

This function sets the permission for the user to access the information in the database. This includes creating, inserting, deleting and updating of information in the database

Related topics

File

legacy/tripal_project/tripal_project.module, line 140
Integrates the Chado Project tables with Drupal Nodes & Views

Code

function tripal_project_permission() {
  return array(
    /*
    'access chado_project content' => array(
      'title' => t('View Projects'),
      'description' => t('Allow users to view project pages.'),
    ),
    'create chado_project content' => array(
      'title' => t('Create Projects'),
      'description' => t('Allow users to create new project pages.'),
    ),
    'delete chado_project content' => array(
      'title' => t('Delete Projects'),
      'description' => t('Allow users to delete project pages.'),
    ),
    'edit chado_project content' => array(
      'title' => t('Edit Projects'),
      'description' => t('Allow users to edit project pages.'),
    ),
    'administer tripal project' => array(
      'title' => t('Administer Projects'),
      'description' => t('Allow users to administer all projects.'),
    ),
    */
  );
}