function pmtimetracking_install in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 8 pmtimetracking/pmtimetracking.install \pmtimetracking_install()
- 7.3 pmtimetracking/pmtimetracking.install \pmtimetracking_install()
- 7 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('pmpermission_field_parent_reference_for_pmtimetracking', 'pmtimetracking_parent');
variable_set('pmpermission_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);
}