function _simpleads_stats_info in SimpleAds 7
Helper function. Adds additional information to statistics page.
Parameters
object $node:
string $op:
Return value
string
2 calls to _simpleads_stats_info()
- _simpleads_listing in ./
simpleads.stat.inc - Callback for Ads Listing page.
- _simpleads_stat_tab in ./
simpleads.stat.inc - Callback for Ad Statistics page.
File
- includes/
simpleads.helper.inc, line 370 - SimpleAds Helper functions.
Code
function _simpleads_stats_info($node, $op = 'list') {
$result = array();
$c = 0;
if ($hook = module_invoke_all('simpleads_stats_info', $node, $op)) {
if (is_array($hook) && !empty($hook)) {
foreach ($hook as $data) {
$result[] = '<div class="stat-item">' . $data . '</div>';
}
return '<div class="simpleads-stat-' . $op . '">' . join("", $result) . '</div>';
}
}
}