You are here

function _pm_icon_list_as_table in Drupal PM (Project Management) 7.3

Helper function to generate a list of icons exposed by Drupal PM.

1 call to _pm_icon_list_as_table()
pm_menu_admin in includes/pm.menu.inc
Generates a table of recommended modules.

File

includes/pm.icon.inc, line 235
Icon handling by Drupal PM.

Code

function _pm_icon_list_as_table() {
  $map = pm_icon_map();
  $header = array(
    t('Icon'),
    t('Name'),
    t('Classes'),
  );
  $rows = array();
  foreach ($map as $name => $class) {
    $rows[] = array(
      pm_icon($name, ''),
      $name,
      $class,
    );
  }
  return array(
    '#theme' => 'table',
    '#header' => $header,
    '#rows' => $rows,
    '#caption' => t('Icons supported by Drupal PM'),
  );
}