You are here

function panels_dashboard_final_blocks in Panels 7.3

Same name and namespace in other branches
  1. 6.3 includes/callbacks.inc \panels_dashboard_final_blocks()
1 call to panels_dashboard_final_blocks()
template_preprocess_panels_dashboard in includes/callbacks.inc

File

includes/callbacks.inc, line 15
Callbacks.inc Minor menu callbacks for Panels helpers.

Code

function panels_dashboard_final_blocks(&$vars) {

  // Add in links for missing modules that we still want to mention:
  if (empty($vars['links']['page_manager'])) {
    $vars['links']['page_manager'] = array(
      'weight' => -100,
      'title' => t('Panel page'),
      'description' => '<em>' . t('You must activate the page manager module for this functionality.') . '</em>',
    );
  }
  if (empty($vars['links']['panels_mini'])) {
    $vars['links']['panels_mini'] = array(
      'title' => t('Mini panel'),
      'description' => '<em>' . t('You must activate the Mini panels module for this functionality.') . '</em>',
    );
  }
  if (empty($vars['links']['panels_node'])) {
    $vars['links']['panels_mini'] = array(
      'title' => t('Panel node'),
      'description' => '<em>' . t('You must activate the panel node module for this functionality.') . '</em>',
    );
  }
}