You are here

function pmissue_install in Drupal PM (Project Management) 7.2

Same name and namespace in other branches
  1. 8 pmissue/pmissue.install \pmissue_install()
  2. 7.3 pmissue/pmissue.install \pmissue_install()

Implements hook_install().

File

pmissue/pmissue.install, line 10
Install, disable, uninstall and update functions for PM Issue module.

Code

function pmissue_install() {
  variable_set('node_options_pmissue', array(
    'status',
  ));

  // PM Permissions default configurations.
  variable_set('pmpermission_field_assigned_reference', 'pm_assigned');
  variable_set('pmpermission_field_pm_reference', 'pm_manager');
  variable_set('pmpermission_field_parent_reference_for_pmissue', 'pmissue_parent');
  variable_set('pmpermission_node_pmissue_enabled', TRUE);

  // Create and attaches fields to pmissue content type.
  module_load_include('inc', 'pmissue', 'includes/pmissue.migrate');
  pmissue_migrate_create_fields();
}