You are here

function __getclicky_output_stats_dashboard in Clicky - Web Analytics in Real Time 6

Same name and namespace in other branches
  1. 8 getclicky.module \__getclicky_output_stats_dashboard()
  2. 7 getclicky.module \__getclicky_output_stats_dashboard()
1 string reference to '__getclicky_output_stats_dashboard'
getclicky_menu in ./getclicky.module
Implementation of hook_menu().

File

./getclicky.module, line 361

Code

function __getclicky_output_stats_dashboard() {

  // todo: test if perms work as expected without site reports one
  if (user_access('access clicky stats dashboard')) {
    $site_id = variable_get('getclicky_site_id_number', '');
    $site_key = variable_get('getclicky_site_key_number', '');
    if ($site_id && $site_key) {
      $iframe = '<br /><iframe style="margin-left: 20px; width: 850px; height: 1000px;" src="http://getclicky.com/stats/wp-iframe?site_id=' . $site_id . '&sitekey=' . $site_key . '"></iframe>';
    }
    else {
      $iframe = "Empty. Please enter site id and sitekey ...";
    }
    return $iframe;
  }
}