function ad_save in Advertisement 7.2
Saves an ad.
Parameters
$ad: The full ad object to save.
Return value
TRUE on success, FALSE otherwise.
1 call to ad_save()
- ad_ui_form_submit in includes/
ad_ui.inc - Submit callback for ad_ui_form().
1 string reference to 'ad_save'
- ad_entity_info in ./
ad.module - Implements hook_entity_info().
File
- ./
ad.module, line 298 - 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_save($ad) {
return entity_get_controller('ad')
->save($ad);
}