function realname_supported_modules in Real Name 6
6 calls to realname_supported_modules()
- realname_admin_fields in ./
realname.admin.inc - realname_admin_module in ./
realname.admin.inc - realname_admin_module_submit in ./
realname.admin.inc - realname_make_name in ./
realname.module - Retreive calculated user name. Try static cache first, DB next and on failure call helper function to calculate realname and populate DB.
- realname_user in ./
realname.module - Implements hook_user().
File
- ./
realname.module, line 729
Code
function realname_supported_modules($module = NULL) {
static $modules;
_realname_include();
if (!isset($modules)) {
foreach (module_implements('realname') as $value) {
$options = call_user_func($value . '_realname');
if (isset($options) && is_array($options)) {
$modules[$value] = $options;
}
}
}
if ($module) {
if (array_key_exists($module, $modules)) {
return $modules[$module];
}
else {
return FALSE;
}
}
return $modules;
}