domain_prefix_get_name

Versions
domain
domain_prefix_get_name($module)

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 functions call 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.

Code

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

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List