function total_control_welcome_content_type_render in Total Control Admin Dashboard 6.2
Same name and namespace in other branches
- 6 plugins/content_types/welcome.inc \total_control_welcome_content_type_render()
- 7.2 plugins/content_types/welcome.inc \total_control_welcome_content_type_render()
Run-time rendering of the body of the block.
Parameters
$subtype:
$conf: Configuration as done at admin time.
$args:
$context: Context - in this case we don't have any.
Return value
An object with at least title and content members.
1 string reference to 'total_control_welcome_content_type_render'
- welcome.inc in plugins/
content_types/ welcome.inc - welcome.inc
File
- plugins/
content_types/ welcome.inc, line 71 - welcome.inc
Code
function total_control_welcome_content_type_render($subtype, $conf, $panel_args, &$context) {
// Building 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/build/pages/edit/dashboard'),
'!settings' => l(t('Total
Control Settings'), 'admin/settings/control'),
)) . '</p>';
$content .= '</div>';
$block = new stdClass();
$block->module = t('total_control');
$block->title = t('Take Total Control.');
$block->content = $content;
return $block;
}