dashboard_is_visible

function dashboard_is_visible

dashboard_is_visible()

Determines if the dashboard should be displayed on the current page.

This function checks if the user is currently viewing the dashboard and has access to see it. It is used by other functions in the dashboard module to decide whether or not the dashboard content should be displayed to the current user.

Although the menu system normally handles the above tasks, it only does so for the main page content. However, the dashboard is not part of the main page content, but rather is displayed in special regions of the page (so it can interface with the Block module's method of managing page regions). We therefore need to maintain this separate function to check the menu item for us.

Return value

TRUE if the dashboard should be visible on the current page, FALSE otherwise.

See also

登录查看完整内容