function pmticket_install in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmticket/pmticket.install \pmticket_install()
- 7 pmticket/pmticket.install \pmticket_install()
- 7.2 pmticket/pmticket.install \pmticket_install()
Implements hook_install().
File
- pmticket/
pmticket.install, line 10 - Installation functions for the Project Management project module.
Code
function pmticket_install() {
variable_set('node_options_pmticket', 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_pmticket', 'pmticket_parent');
variable_set('pm_permission_node_pmticket_enabled', TRUE);
// Create and attaches fields to pmticket content type.
module_load_include('inc', 'pmticket', 'includes/pmticket.migrate');
// Parameter $sandbox is passed as a placeholder.
$sandbox = array();
pmticket_migrate_create_fields($sandbox);
}