[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/node_permissions_grid/ -> node_permissions_grid.module (source)

   1  <?php
   2  // $Id: node_permissions_grid.module,v 1.1 2009/04/10 09:15:43 joachim Exp $
   3  
   4  /**
   5   * @file
   6   * TODO: Enter file description here.
   7   */
   8  
   9  /**
  10   * Implementation of hook_help().
  11   */
  12  function node_permissions_grid_help($path, $arg) {
  13    switch ($path) {
  14      case 'admin/user/node_permissions':
  15        return t("This page is an alternative view of the user permissions relating to content types on your site. Permissions are shown below in a grid, with content types down the side and the possible actions such as 'create', 'edit own' along the top. So for example, the checkbox at the intersection of 'edit any' and 'page' is the user permission 'edit any page'.");
  16    }
  17  }
  18  
  19  /**
  20   * Implementation of hook_theme().
  21   */
  22  function node_permissions_grid_theme($path, $arg) {
  23    return array(
  24      'node_permissions_grid_admin_content_perm' => array(
  25        'arguments' => array('form' => NULL),
  26      ),
  27      'node_permissions_grid_admin_roles' => array(
  28        'arguments' => array('form' => NULL),
  29      ),
  30    );
  31  }
  32  
  33  /**
  34   * Implementation of hook_menu().
  35   */
  36  function node_permissions_grid_menu() {
  37    $items['admin/user/node_permissions'] = array(
  38      'title' => 'Node permissions',
  39      'description' => 'Manage permissions for nodes.',
  40      'page callback' => 'drupal_get_form',
  41      'page arguments' => array('node_permissions_grid_admin_content_perm'),
  42      'access arguments' => array('administer permissions'),
  43      'file' => 'node_permissions_grid.admin.inc',
  44    );
  45    return $items;
  46  }


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7