You are here

function pmnote_install in Drupal PM (Project Management) 7.2

Same name and namespace in other branches
  1. 8 pmnote/pmnote.install \pmnote_install()
  2. 7.3 pmnote/pmnote.install \pmnote_install()
  3. 7 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('pmpermission_field_parent_reference_for_pmnote', 'pmnote_parent');
  variable_set('pmpermission_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);
}