function advanced_help_get_module_name

cis7 advanced_help.module advanced_help_get_module_name($module)
cle7 advanced_help.module advanced_help_get_module_name($module)
elmsmedia7 advanced_help.module advanced_help_get_module_name($module)
icor7 advanced_help.module advanced_help_get_module_name($module)
meedjum_blog7 advanced_help.module advanced_help_get_module_name($module)
mooc7 advanced_help.module advanced_help_get_module_name($module)

Small helper function to get a module's proper name.

Parameters

$module string:

Return value

string

2 calls to advanced_help_get_module_name()
advanced_help_index_page in sites/all/modules/ulmus/advanced_help/advanced_help.module
Page callback to view the advanced help topic index.
advanced_help_topic_page in sites/all/modules/ulmus/advanced_help/advanced_help.module
Page callback to view a help topic.

File

sites/all/modules/ulmus/advanced_help/advanced_help.module, line 378
Pluggable system to provide advanced help facilities for Drupal and modules.

Code

function advanced_help_get_module_name($module) {
  $settings = advanced_help_get_settings();
  if (isset($settings[$module]['name'])) {
    $name = $settings[$module]['name'];
  }
  else {
    $info = db_query("SELECT s.info FROM {system} s WHERE s.name = :name", array(':name' => $module))->fetchField();
    $info = unserialize($info);
    $name = t($info['name']);
  }
  return $name;
}