You are here

function pmproject_install in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmproject/pmproject.install \pmproject_install()
  2. 7 pmproject/pmproject.install \pmproject_install()
  3. 7.2 pmproject/pmproject.install \pmproject_install()

Implements hook_install().

File

pmproject/pmproject.install, line 10
Installation functions for the Project Management project module.

Code

function pmproject_install() {
  variable_set('node_options_pmproject', array(
    'status',
  ));

  // PM Permissions default configurations.
  variable_set('pm_permission_field_assigned_reference', 'pm_assigned');
  variable_set('pm_permission_field_pm_reference', 'pm_manager');
  variable_set('pm_permission_field_parent_reference_for_pmproject', 'pmproject_parent');
  variable_set('pm_permission_node_pmproject_enabled', TRUE);

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

  // Parameter $sandbox is passed as a placeholder.
  $sandbox = array();
  pmproject_migrate_create_fields($sandbox);
}