You are here

function total_control_welcome_content_type_render in Total Control Admin Dashboard 7.2

Same name and namespace in other branches
  1. 6.2 plugins/content_types/welcome.inc \total_control_welcome_content_type_render()
  2. 6 plugins/content_types/welcome.inc \total_control_welcome_content_type_render()

Run-time rendering of the body of the block.

File

plugins/content_types/welcome.inc, line 41

Code

function total_control_welcome_content_type_render($subtype, $conf, $panel_args, &$context) {

  // Build the content.
  $content = '<div class="total-control-site-overview">';
  $content .= '  <p>' . t('Welcome to your administrative dashboard.  !panel
    to add more content panes here, or configure those provided by default.
    Views content panes can be created for you automatically according to your
    !settings.  Make this dashboard the perfect hub for all your administrative
    needs.', array(
    '!panel' => l(t('Edit this panel'), 'admin/structure/pages/nojs/operation/page-dashboard/handlers/page_dashboard_panel_context/content'),
    '!settings' => l(t('Total Control Settings'), 'admin/config/administration/control'),
  )) . '</p>';
  $content .= '</div>';
  $block = new stdClass();
  $block->module = t('total_control');
  $block->title = t('Take Total Control.');
  $block->content = $content;
  return $block;
}