You are here

function patch_manager_install in Patch manager 7

Same name and namespace in other branches
  1. 6 patch_manager.install \patch_manager_install()

Implements hook_schema().

File

./patch_manager.install, line 10
Install, update and uninstall functions for the Patch manager module.

Code

function patch_manager_install() {

  // Install our fields.
  $fields = patch_manager_field_info();
  foreach ($fields as $field) {
    field_create_field($field);
  }

  // Create instances for each defined field.
  $instances = patch_manager_instance_info();
  foreach ($instances as $instance) {
    field_create_instance($instance);
  }
}