function devel_function_reference in Devel 7
Same name and namespace in other branches
- 5 devel.module \devel_function_reference()
- 6 devel.module \devel_function_reference()
Page callback: Returns a list of all currently defined user functions.
Returns a list of all currently defined user functions in the current request lifecycle, with links their documentation.
1 string reference to 'devel_function_reference'
- devel_menu in ./
devel.module - Implements hook_menu().
File
- ./
devel.pages.inc, line 22 - Page callbacks for Devel.
Code
function devel_function_reference() {
$functions = get_defined_functions();
$version = devel_get_core_version(VERSION);
$ufunctions = $functions['user'];
sort($ufunctions);
$api = variable_get('devel_api_url', 'api.drupal.org');
foreach ($ufunctions as $function) {
$links[] = l($function, "http://{$api}/api/{$version}/function/{$function}");
}
return theme('item_list', array(
'items' => $links,
));
}