function pmnote_install in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmnote/pmnote.install \pmnote_install()
- 7 pmnote/pmnote.install \pmnote_install()
- 7.2 pmnote/pmnote.install \pmnote_install()
Implements hook_install().
File
- pmnote/
pmnote.install, line 10 - Functions for the PM Note module.
Code
function pmnote_install() {
variable_set('node_options_pmnote', array(
'status',
));
// PM Permissions default configurations.
variable_set('pm_permission_field_parent_reference_for_pmnote', 'pmnote_parent');
variable_set('pm_permission_node_pmnote_enabled', TRUE);
// Create and attaches fields to pmnote content type.
module_load_include('inc', 'pmnote', 'includes/pmnote.migrate');
// Parameter $sandbox is passed as a placeholder.
$sandbox = array();
pmnote_migrate_create_fields($sandbox);
}