function advanced_help_form_system_modules_alter

cis7 advanced_help.module advanced_help_form_system_modules_alter(&$form, &$form_state)
cle7 advanced_help.module advanced_help_form_system_modules_alter(&$form, &$form_state)
elmsmedia7 advanced_help.module advanced_help_form_system_modules_alter(&$form, &$form_state)
icor7 advanced_help.module advanced_help_form_system_modules_alter(&$form, &$form_state)
meedjum_blog7 advanced_help.module advanced_help_form_system_modules_alter(&$form, &$form_state)
mooc7 advanced_help.module advanced_help_form_system_modules_alter(&$form, &$form_state)

Implements hook_form_system_modules_alter().

Add advanced help links to the modules page.

File

sites/all/modules/ulmus/advanced_help/advanced_help.module, line 320
Pluggable system to provide advanced help facilities for Drupal and modules.

Code

function advanced_help_form_system_modules_alter(&$form, &$form_state) {
  $advanced_help_modules = drupal_map_assoc(array_keys(advanced_help_get_topics()));
  foreach (element_children($form['modules']) as $group) {
    foreach (element_children($form['modules'][$group]) as $module) {
      if (isset($advanced_help_modules[$module])) {
        $form['modules'][$group][$module]['links']['help'] = array(
          '#type' => 'link',
          '#title' => t('Help'),
          '#href' => "admin/advanced_help/$module",
          '#options' => array('attributes' => array(
            'class' => array('module-link', 'module-link-help'),
            'title' => t('Help'),
          )),
        );
      }
    }
  }
}