help_links_as_list

Versions
4.6 – 7
help_links_as_list()

▾ 1 function calls help_links_as_list()

help_main in modules/help.module
Menu callback; prints a page listing a glossary of Drupal terminology.

Code

modules/help.module, line 66

<?php
function help_links_as_list() {
  $modules = array();
  foreach (module_implements('help', TRUE) as $module) {
    if (module_invoke($module, 'help', "admin/help#$module")) {
      $modules[] = $module;
    }
  }
  sort($modules);

  // Output pretty four-column list
  $break = ceil(count($modules) / 4);
  $output = '<div class="help-items"><ul>';
  foreach ($modules as $i => $module) {
    $output .= '<li>'. l(t($module), 'admin/help/'. $module) .'</li>';
    if (($i + 1) % $break == 0) {
      $output .= '</ul></div><div class="help-items'. ($i + 1 == $break * 3 ? ' help-items-last' : '') .'"><ul>';
    }
  }
  $output .= '</ul></div><br class="clear" />';

  return $output;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.