function ad_install in Advertisement 7.2
Same name and namespace in other branches
- 5.2 ad.install \ad_install()
- 5 ad.install \ad_install()
- 6.3 ad.install \ad_install()
- 6 ad.install \ad_install()
- 6.2 ad.install \ad_install()
- 7 ad.install \ad_install()
Implements hook_install().
File
- ./
ad.install, line 6
Code
function ad_install() {
// Create the basic ad type.
$ad_type = ad_type_new();
$ad_type->type = 'advertisement';
$ad_type->name = t('Advertisement');
$ad_type->description = t('A basic ad type with no additional fields by default.');
$ad_type->is_new = TRUE;
ad_type_save($ad_type);
}