You are here

function contentanalysis_format_stat in Content Analysis 8

Same name and namespace in other branches
  1. 6 contentanalysis.module \contentanalysis_format_stat()
  2. 7 contentanalysis.module \contentanalysis_format_stat()

Formats a stats element

Parameters

$title: Human readable label for stat

$value: Stat value

$decimals: Decimals to round to on display

Return value

Stats formatted associative array

File

./contentanalysis.module, line 1488

Code

function contentanalysis_format_stat($title, $value, $decimals = 0) {
  return array(
    '#title' => $title,
    '#value' => $value,
    '#decimals' => $decimals,
  );
}