domain_prefix_get_name($module)Return the human-readable name of a module.
$module Module information proivided by the SchemaAPI.
A human-readable string identifying the module.
domain_prefix/domain_prefix.admin.inc, line 537
<?php
function domain_prefix_get_name($module) {
static $modules = array();
$key = $module['module'];
if (!isset($modules[$key])) {
// Get the module data to match to the schema.
$modules[$key] = drupal_parse_info_file(drupal_get_path('module', $key) .'/'. $key .'.info');
}
return $modules[$key]['name'];
}
?>