You are here

function user_dashboard_theme in UserDashboard 7

Implements hook_theme().

File

./user_dashboard.module, line 149
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_theme() {
  return array(
    'user_dashboard' => array(
      'render element' => 'element',
    ),
    'user_dashboard_page' => array(
      'render element' => 'element',
    ),
    'user_dashboard_region' => array(
      'render element' => 'element',
    ),
    'user_dashboard_disabled_blocks' => array(
      'variables' => array(
        'blocks' => NULL,
      ),
    ),
    'user_dashboard_disabled_block' => array(
      'variables' => array(
        'block' => NULL,
      ),
    ),
    'user_dashboard_admin_display_form' => array(
      // When building the form for configuring dashboard blocks, reuse the
      // Block module's template for the main block configuration form.
      'template' => 'block-admin-display-form',
      'path' => drupal_get_path('module', 'block'),
      'file' => 'block.admin.inc',
      'render element' => 'form',
    ),
  );
}