| 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(), |
| 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 |
} |
} |
|
|
|