You are here

function pmexpense_install in Drupal PM (Project Management) 7.2

Same name and namespace in other branches
  1. 8 pmexpense/pmexpense.install \pmexpense_install()
  2. 7.3 pmexpense/pmexpense.install \pmexpense_install()
  3. 7 pmexpense/pmexpense.install \pmexpense_install()

Implements hook_install().

File

pmexpense/pmexpense.install, line 10
Installation file for pmexpense module.

Code

function pmexpense_install() {
  variable_set('node_options_pmexpense', array(
    'status',
  ));

  // PM Permissions default configurations.
  variable_set('pmpermission_field_parent_reference_for_pmexpense', 'pmexpense_parent');
  variable_set('pmpermission_node_pmexpense_enabled', TRUE);

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

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