function _simpleads_node_stat_tab in SimpleAds 7
Access callback. Node Ad stats tab.
1 string reference to '_simpleads_node_stat_tab'
- simpleads_menu in ./
simpleads.module - Implements hook_menu().
File
- includes/
simpleads.helper.inc, line 175 - SimpleAds Helper functions.
Code
function _simpleads_node_stat_tab() {
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if (is_object($node) && $node->type == 'simpleads' && user_access('access ad statistics')) {
return TRUE;
}
else {
return FALSE;
}
}
else {
return FALSE;
}
}