/[drupal]/contributions/modules/help_soc/help_example/help_example.module
ViewVC logotype

Diff of /contributions/modules/help_soc/help_example/help_example.module

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

revision 1.12, Tue Aug 12 18:16:39 2008 UTC revision 1.13, Sun Aug 17 20:56:19 2008 UTC
# Line 14  function help_example_menu() { Line 14  function help_example_menu() {
14    // View help topic index.    // View help topic index.
15    $items['admin/help_example'] = array(    $items['admin/help_example'] = array(
16      'title' => 'Example help',      'title' => 'Example help',
17      'page callback' => 'help_index_page',      'page callback' => 'help_by_module',
18      'access arguments' => array('access help'),      'access arguments' => array('access help'),
19      'weight' => 9,      'weight' => 9,
20      'help' => help_example_index_page(),      'help' => help_example_index_page(),
# Line 62  function help_example_form_alter(&$form, Line 62  function help_example_form_alter(&$form,
62      );      );
63    }    }
64    else if ($form_id == 'system_modules') {    else if ($form_id == 'system_modules') {
65      unset($form['help']);      foreach ($form['modules'] as $package => $packages) {
66      if (module_exists('search')) {        if (is_array($packages)) {
67        $form['help']['search']['#value'] = theme('help_link', 'search');          foreach ($packages as $module_name => $module) {
68      }            if (($module_name == 'search' || $module_name == 'color' || $module_name == 'menu' || $module_name == 'update' || $module_name == 'help_example')
69      if (module_exists('color')) {              && module_exists($module_name)) {
70        $form['help']['color']['#value'] = theme('help_link', 'color');              $form['modules'][$package][$module_name]['help']['#markup'] = theme('help_link', $module_name);
71      }            }
72      if (module_exists('menu')) {          }
73        $form['help']['menu']['#value'] = theme('help_link', 'menu');        }
     }  
     if (module_exists('update')) {  
       $form['help']['update']['#value'] = theme('help_link', 'update');  
     }  
     if (module_exists('help_example')) {  
       $form['help']['help_example']['#value'] = theme('help_link', 'help_example');  
74      }      }
75    }    }
76  }  }
   

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.2