function ad_install in Advertisement 7
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.2 ad.install \ad_install()
Implements hook_install().
File
- ./
ad.install, line 306 - Advertisement module database schema.
Code
function ad_install() {
// Ensure the forum node type is available.
node_types_rebuild();
// Create fields
foreach (_ad_installed_fields() as $field) {
field_create_field($field);
}
// Associate our fields with our content types
foreach (_ad_installed_instances() as $instance) {
field_create_instance($instance);
}
}