function pmteam_install in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmteam/pmteam.install \pmteam_install()
- 7 pmteam/pmteam.install \pmteam_install()
- 7.2 pmteam/pmteam.install \pmteam_install()
Implements hook_install().
File
- pmteam/
pmteam.install, line 10 - Install, uninstall and update functions for the PM Team module.
Code
function pmteam_install() {
// Create and attaches fields to pmteam content type.
module_load_include('inc', 'pmteam', 'includes/pmteam.migrate');
variable_set('pm_permission_field_parent_reference_for_pmteam', 'pmteam_organization');
// Parameter $sandbox is passed as a placeholder.
$sandbox = array();
pmteam_migrate_create_fields($sandbox);
variable_set("pm_permission_node_pmteam_enabled", TRUE);
}