function hook_quants in Quant 6
Implementation of hook_quants()
Provide a quant chart of comment creation over time
2 functions implement hook_quants()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- quant_get_quants in ./
quant.module - Fetch all available quants
- quant_quants in ./
quant.module - Implementation of hook_quants()
1 invocation of hook_quants()
- quant_get_quants in ./
quant.module - Fetch all available quants
File
- ./
quant.api.php, line 27
Code
function hook_quants() {
$quants = array();
$quant = new stdClass();
$quant->id = 'comment_creation';
// Unique ID
$quant->label = t('Comment creation');
// The title of the chart
$quant->labelsum = TRUE;
// Add the sum of items over time to the title
$quant->table = 'comments';
// The database table
$quant->field = 'timestamp';
// The column that stores the timestamp
$quant->dataType = 'single';
// Only one datapoint used
$quant->chartType = 'line';
// The type of chart
$quants[$uant->id] = $quant;
return $quants;
}