function ad_load in Advertisement 7.2
Loads an ad by ID.
1 string reference to 'ad_load'
- ad_entity_info in ./
ad.module - Implements hook_entity_info().
File
- ./
ad.module, line 305 - Defines the core ad entity, including the entity itself, the bundle definitions (ad types), and various API functions to manage ads and interact with them through forms and autocompletes.
Code
function ad_load($aid) {
$ads = ad_load_multiple(array(
$aid,
), array());
return $ads ? reset($ads) : FALSE;
}