function pmtimetracking_install in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmtimetracking/pmtimetracking.install \pmtimetracking_install()
- 7 pmtimetracking/pmtimetracking.install \pmtimetracking_install()
- 7.2 pmtimetracking/pmtimetracking.install \pmtimetracking_install()
Implements hook_install().
File
- pmtimetracking/
pmtimetracking.install, line 10 - Install functions for PM Timetracking.
Code
function pmtimetracking_install() {
variable_set('node_options_pmtimetracking', array(
'status',
));
// PM Permissions default configurations.
variable_set('pm_permission_field_parent_reference_for_pmtimetracking', 'pmtimetracking_parent');
variable_set('pm_permission_node_pmtimetracking_enabled', TRUE);
// Create and attaches fields to pmtimetracking content type.
module_load_include('inc', 'pmtimetracking', 'includes/pmtimetracking.migrate');
// Parameter $sandbox is passed as a placeholder.
$sandbox = array();
pmtimetracking_migrate_create_fields($sandbox);
}