You are here

function domain_prefix_get_name in Domain Access 6.2

Return the human-readable name of a module.

Parameters

$module: Module information proivided by the SchemaAPI.

Return value

A human-readable string identifying the module.

2 calls to domain_prefix_get_name()
domain_prefix_configure_form in domain_prefix/domain_prefix.admin.inc
FormsAPI for generating the configuration form
domain_prefix_form in domain_prefix/domain_prefix.admin.inc
The table prefixing page for a domain.

File

domain_prefix/domain_prefix.admin.inc, line 541
Admin page functions for selective table prefixing for use with Domain Access.

Code

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'];
}