You are here

function patch_manager_install in Patch manager 6

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

Implementation of hook_schema().

File

./patch_manager.install, line 6

Code

function patch_manager_install() {

  // Load necessary files.
  drupal_load('module', 'content');
  module_load_include('inc', 'content', 'includes/content.crud');

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

  // Notify the content module about our field formatter.
  content_notify('install', 'patch_manager');
}