function ad_delete in Advertisement 7.2
Deletes an ad by ID.
Parameters
$aid: The ID of the ad to delete.
Return value
TRUE on success, FALSE otherwise.
1 call to ad_delete()
- ad_ui_delete_form_submit in includes/
ad_ui.inc - Submit callback for ad_ui_delete_form().
1 string reference to 'ad_delete'
- ad_entity_info in ./
ad.module - Implements hook_entity_info().
File
- ./
ad.module, line 338 - 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_delete($aid) {
return ad_delete_multiple(array(
$aid,
));
}