You are here

function pmorganization_install in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 pmorganization/pmorganization.install \pmorganization_install()
  2. 7 pmorganization/pmorganization.install \pmorganization_install()
  3. 7.2 pmorganization/pmorganization.install \pmorganization_install()

Implements hook_install().

File

pmorganization/pmorganization.install, line 10
PM Organization install file.

Code

function pmorganization_install() {
  variable_set('node_options_pmorganization', array(
    'status',
  ));
  variable_set('pm_permission_field_org_member_reference', 'pmorganization_members');
  variable_set('pm_permission_node_pmorganization_enabled', TRUE);

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

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