You are here

function total_control_overview_content_type_render in Total Control Admin Dashboard 6.2

Same name and namespace in other branches
  1. 6 plugins/content_types/overview.inc \total_control_overview_content_type_render()
  2. 7.2 plugins/content_types/overview.inc \total_control_overview_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_overview_content_type_render'
overview.inc in plugins/content_types/overview.inc
overview.inc

File

plugins/content_types/overview.inc, line 64
overview.inc

Code

function total_control_overview_content_type_render($subtype, $conf, $panel_args, &$context) {
  $block = new stdClass();
  $block->module = t('total_control');
  $block->title = t('Content and User overview');
  $overview_content = total_control_get_content_overview($conf);
  $overview_users = total_control_get_user_overview($conf);
  $block->content = theme('total_control_overview', array(
    'content' => $overview_content,
    'users' => $overview_users,
  ));
  return $block;
}