/[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 74746 by jfiat, Thu Sep 18 18:34:21 2008 UTC revision 74747 by jfiat, Fri Sep 19 07:54:46 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id$
3    
4    /*
5     * Help
6     */
7  function isedoc_help($path, $arg) {  function isedoc_help($path, $arg) {
8          $output = '';          $output = '';
9          switch ($path) {          switch ($path) {
# Line 11  function isedoc_help($path, $arg) { Line 14  function isedoc_help($path, $arg) {
14          return $output;          return $output;
15  } // function isedoc_help  } // function isedoc_help
16    
17    /**
18     * Implementation of hook_perm().
19     */
20    function isedoc_perm() {
21      return array('admin isedoc');
22    }
23    
24    
25    /*
26     * Block
27     */
28  function isedoc_block($op = 'list', $delta = 0) {  function isedoc_block($op = 'list', $delta = 0) {
29          if ($op == 'list') {          if ($op == 'list') {
30                  $block[0]["info"] = t('ISE docs');                  $block[0]["info"] = t('ISE docs');
# Line 36  function isedoc_block($op = 'list', $del Line 50  function isedoc_block($op = 'list', $del
50                  if ($n) {                  if ($n) {
51                    $links[] = l('What links here','node/'.$n->nid.'/whatlinkshere');                    $links[] = l('What links here','node/'.$n->nid.'/whatlinkshere');
52                  }                  }
53                  $links[] = l('Update All','isedoc/update/all');                  if (user_access('admin isedoc')) {
54                            $links[] = l('Update All','isedoc/update/all');
55                    }
56    
57                  $block_content .= theme('item_list', $links);                  $block_content .= theme('item_list', $links);
58                  if ($block_content == '') {                  if ($block_content == '') {
# Line 77  function isedoc_menu() { Line 93  function isedoc_menu() {
93      'title' => t('Update documentation pages'),      'title' => t('Update documentation pages'),
94      'page callback' => 'isedoc_update_pages',      'page callback' => 'isedoc_update_pages',
95      'page arguments' => array(2),      'page arguments' => array(2),
96      'access arguments' => array('access content'),      'access arguments' => array('admin isedoc'),
97      'file' => 'isedoc.update.inc',      'file' => 'isedoc.update.inc',
98      'type' => MENU_NORMAL_ITEM,      'type' => MENU_NORMAL_ITEM,
99    );    );

Legend:
Removed from v.74746  
changed lines
  Added in v.74747

  ViewVC Help
Powered by ViewVC 1.1.23