statistics_token_info

Versions
mediamosa-21
statistics_token_info()

Implements hook_token_info().

Code

modules/statistics/statistics.tokens.inc, line 11

<?php
function statistics_token_info() {
  $node['views'] = array(
    'name' => t("Number of views"),
    'description' => t("The number of visitors who have read the node."),
  );
  $node['day-views'] = array(
    'name' => t("Views today"),
    'description' => t("The number of visitors who have read the node today."),
  );
  $node['last-view'] = array(
    'name' => t("Last view"),
    'description' => t("The date on which a visitor last read the node."),
    'type' => 'date',
  );

  return array(
    'tokens' => array('node' => $node),
  );
}
?>