function hook_stats_additional_menublocks
Search API
Used by the stats module, this will ask other modules to return an array of paths suitable for the fp_render_menu_block() function. In other words, the paths should be the **beginning** of the paths of your custom reports or other links which you wish to show up on the stats screen.
To see this in action, examine the stats.module file, function stats_display_main()
See also
stats_display_main
File
- includes/
hook.api.php, line 87 - Lists all available hooks within FlightPath's core code.
Code
function hook_stats_additional_menublocks() {
return array(
'Custom Reports' => 'stats/custom-reports',
'Fancy Reports' => 'stats/fancy-reports',
);
}