function pmexpense_install in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmexpense/pmexpense.install \pmexpense_install()
- 7 pmexpense/pmexpense.install \pmexpense_install()
- 7.2 pmexpense/pmexpense.install \pmexpense_install()
Implements hook_install().
File
- pmexpense/
pmexpense.install, line 10 - Installation file for pmexpense module.
Code
function pmexpense_install() {
variable_set('node_options_pmexpense', array(
'status',
));
// PM Permissions default configurations.
variable_set('pm_permission_field_parent_reference_for_pmexpense', 'pmexpense_parent');
variable_set('pm_permission_node_pmexpense_enabled', TRUE);
// Create and attaches fields to pmexpense content type.
module_load_include('inc', 'pmexpense', 'includes/pmexpense.migrate');
// Parameter $sandbox is passed as a placeholder.
$sandbox = array();
pmexpense_migrate_create_fields($sandbox);
}