You are here

function user_badges_install in User Badges 7.4

Same name and namespace in other branches
  1. 5 user_badges.install \user_badges_install()
  2. 6.2 user_badges.install \user_badges_install()
  3. 6 user_badges.install \user_badges_install()

Implements hook_install().

File

./user_badges.install, line 319
Install for user_badge module

Code

function user_badges_install() {
  foreach (user_badges_get_field_bases() as $field) {
    field_create_field($field);
  }
  foreach (user_badges_get_field_instances() as $field) {
    field_create_instance($field);
  }
}