Colophon


Modules enabled on this copy of Drupal:

The colophon is a list of Drupal modules used to run this site. It's generated by calling the module_list() method, and iterating over the output, so it's a live reflection of what's running right now.

    $modulelist = module_list( FALSE, TRUE, TRUE, NULL);

    echo '

      ';
      foreach ($modulelist as $amodule) {
      echo '
    • '.$amodule.'
    • ';
      }
      echo '

    '

    /**
    // Get current list of modules
    $files = system_listing('\.module$', 'modules', 'name', 0);

    // Extract current files from database.
    system_get_files_database($files, 'module');

    ksort($files);

    foreach ($files as $filename => $file) {
    if ($file -> status) {
    drupal_get_filename('module', $file->name, $file->filename);
    drupal_load('module', $file->name);

    $file->description = module_invoke($file->name, 'help', 'admin/modules#description');

    echo '

  • '.$file->name.': '.$file->description.'
  • ';
    }
    }
    */
    ?>


See Also

comments powered by Disqus