function pmproject_install in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 8 pmproject/pmproject.install \pmproject_install()
- 7.3 pmproject/pmproject.install \pmproject_install()
- 7 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('pmpermission_field_assigned_reference', 'pm_assigned');
variable_set('pmpermission_field_pm_reference', 'pm_manager');
variable_set('pmpermission_field_parent_reference_for_pmproject', 'pmproject_parent');
variable_set('pmpermission_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);
}