function pmtask_install in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmtask/pmtask.install \pmtask_install()
- 7 pmtask/pmtask.install \pmtask_install()
- 7.2 pmtask/pmtask.install \pmtask_install()
Implements hook_install().
File
- pmtask/
pmtask.install, line 10 - Install, disable, uninstall and update functions for pmtask module.
Code
function pmtask_install() {
variable_set('node_options_pmtask', array(
'status',
));
// PM Permissions default configurations.
variable_set('pm_permission_field_assigned_reference', 'pm_assigned');
variable_set('pm_permission_field_parent_reference_for_pmtask', 'pmtask_parent');
variable_set('pm_permission_node_pmtask_enabled', TRUE);
// Create and attaches fields to pmtask content type.
module_load_include('inc', 'pmtask', 'includes/pmtask.migrate');
// Parameter $sandbox is passed as a placeholder.
$sandbox = array();
pmtask_migrate_create_fields($sandbox);
}