You are here

function ad_install in Advertisement 7.2

Same name and namespace in other branches
  1. 5.2 ad.install \ad_install()
  2. 5 ad.install \ad_install()
  3. 6.3 ad.install \ad_install()
  4. 6 ad.install \ad_install()
  5. 6.2 ad.install \ad_install()
  6. 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);
}