You are here

function visitors_get_chart_width in Visitors 7.2

Same name and namespace in other branches
  1. 8 visitors.chart.inc \visitors_get_chart_width()
  2. 7 visitors.chart.inc \visitors_get_chart_width()
  3. 7.0 visitors.chart.inc \visitors_get_chart_width()

Get chart width.

Return value

int chart width

4 calls to visitors_get_chart_width()
visitors_chart in ./visitors.chart.inc
Draw chart.
visitors_days_of_month in reports/days_of_month.inc
Display days of month report.
visitors_days_of_week in reports/days_of_week.inc
Display days of week report.
visitors_monthly_history in reports/monthly_history.inc
Display monthly history report.

File

./visitors.chart.inc, line 20

Code

function visitors_get_chart_width() {
  $width = (int) variable_get('visitors_chart_width', 700);
  return $width <= 0 ? 700 : $width;
}