function pmissue_install in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmissue/pmissue.install \pmissue_install()
- 7.2 pmissue/pmissue.install \pmissue_install()
Implements hook_install().
File
- pmissue/
pmissue.install, line 10 - Install, disable, uninstall and update functions for PM Issue module.
Code
function pmissue_install() {
variable_set('node_options_pmissue', array(
'status',
));
// PM Permissions default configurations.
variable_set('pm_permission_field_assigned_reference', 'pm_assigned');
variable_set('pm_permission_field_pm_reference', 'pm_manager');
variable_set('pm_permission_field_parent_reference_for_pmissue', 'pmissue_parent');
variable_set('pm_permission_node_pmissue_enabled', TRUE);
// Create and attaches fields to pmissue content type.
module_load_include('inc', 'pmissue', 'includes/pmissue.migrate');
pmissue_migrate_create_fields();
}