/[eiffelstudio]/trunk/Documentation/tools/web/trunk/drupal/sites/all/modules/isedoc/isedoc.module
ViewVC logotype

Diff of /trunk/Documentation/tools/web/trunk/drupal/sites/all/modules/isedoc/isedoc.module

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 74841 by jfiat, Fri Sep 26 11:47:11 2008 UTC revision 74842 by jfiat, Fri Sep 26 13:05:31 2008 UTC
# Line 18  function isedoc_help($path, $arg) { Line 18  function isedoc_help($path, $arg) {
18   * Implementation of hook_perm().   * Implementation of hook_perm().
19   */   */
20  function isedoc_perm() {  function isedoc_perm() {
21    return array('admin isedoc');    return array('admin isedoc', 'query isedoc');
22  }  }
23    
24    
# Line 52  function isedoc_block($op = 'list', $del Line 52  function isedoc_block($op = 'list', $del
52                  }                  }
53                  if (user_access('admin isedoc')) {                  if (user_access('admin isedoc')) {
54                          $links[] = l('Update books','isedoc/update/_');                          $links[] = l('Update books','isedoc/update/_');
55                          $links[] = l('Check books','isedoc/report/_');                  }
56                    if (user_access('query isedoc')) {
57                            $links[] = l('Check books','isedoc/report/doc/_');
58                  }                  }
59                  if (isedoc_user_can_edit()) {                  if (isedoc_user_can_edit()) {
60                          $links[] = l('List Templates','isedoc/templates');                          $links[] = l('List Templates','isedoc/templates');
# Line 101  function isedoc_menu() { Line 103  function isedoc_menu() {
103      'file' => 'isedoc.update.inc',      'file' => 'isedoc.update.inc',
104      'type' => MENU_NORMAL_ITEM,      'type' => MENU_NORMAL_ITEM,
105    );    );
106    $items['isedoc/report/%'] = array(    $items['isedoc/report/%/%'] = array(
107      'title' => t('Check documentation pages and report'),      'title' => t('Check documentation pages and report'),
108      'page callback' => 'isedoc_report',      'page callback' => 'isedoc_report',
109      'page arguments' => array(2,3),      'page arguments' => array(2,3,4),
110      'access arguments' => array('admin isedoc'),      'access arguments' => array('query isedoc'),
111      'file' => 'isedoc.report.inc',      'file' => 'isedoc.report.inc',
112      'type' => MENU_NORMAL_ITEM,      'type' => MENU_NORMAL_ITEM,
113    );    );

Legend:
Removed from v.74841  
changed lines
  Added in v.74842

  ViewVC Help
Powered by ViewVC 1.1.23