function _simpleads_adgroup_settings in SimpleAds 7
Helper function. Get block settings by ad group id.
Parameters
int $tid:
Return value
array
2 calls to _simpleads_adgroup_settings()
- _simpleads_load_ads in includes/
simpleads.helper.inc - Helper function. Returns data array for an adertisement block.
- _simpleads_render_ajax_template in includes/
simpleads.helper.inc - Helper function. Return rendered SimpleAds block template.
File
- includes/
simpleads.helper.inc, line 340 - SimpleAds Helper functions.
Code
function _simpleads_adgroup_settings($tid) {
if (is_numeric($tid)) {
$block = db_select('simpleads_blocks', 'sb')
->fields('sb')
->condition('sb.tid', $tid)
->execute()
->fetchObject();
return unserialize($block->settings);
}
else {
return FALSE;
}
}