function pmorganization_install in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmorganization/pmorganization.install \pmorganization_install()
- 7 pmorganization/pmorganization.install \pmorganization_install()
- 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);
}