You are here

function theme_ad_type_admin_overview in Advertisement 7.2

Builds an overview of an ad type for display to an administrator.

Parameters

$variables: An array of variables used to generate the display; by default includes the type key with a value of the ad type object.

1 theme call to theme_ad_type_admin_overview()
ad_ui_types_overview in includes/ad_ui.types.inc
Menu callback: display an overview of available types.

File

includes/ad_ui.types.inc, line 52

Code

function theme_ad_type_admin_overview($variables) {
  $ad_type = $variables['ad_type'];
  $output = check_plain($ad_type->name);
  $output .= ' <small> (Machine name: ' . check_plain($ad_type->type) . ')</small>';
  $output .= '<div class="description">' . filter_xss_admin($ad_type->description) . '</div>';
  return $output;
}