You are here

function _user_dashboard_visible in UserDashboard 7

Check if we are on the user dashboard page.

2 calls to _user_dashboard_visible()
user_dashboard_block_list_alter in ./user_dashboard.module
Implements hook_block_list_alter().
user_dashboard_page_build in ./user_dashboard.module
Implements hook_page_build().

File

./user_dashboard.module, line 798
The User Dashboard module forks Drupal 7's awesome Dashboard module to provide an individual dashboard for each user on the site.

Code

function _user_dashboard_visible() {
  return preg_match('/^user\\/[0-9]{0,11}\\/dashboard$/', implode('/', arg()));
}