function ad_type_new in Advertisement 7.2
Returns an initialized ad type object.
2 calls to ad_type_new()
- ad_install in ./
ad.install - Implements hook_install().
- ad_ui_menu in ./
ad_ui.module - Implements hook_menu().
File
- ./
ad.module, line 117 - 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_type_new() {
return (object) array(
'type' => '',
'name' => '',
'description' => '',
'help' => '',
);
}