You are here

function pmnote_install in Drupal PM (Project Management) 7

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

  // Uncache node types
  node_types_rebuild();

  // Fetch list of current node types and add body field to Project Management Task
  $types = node_type_get_types();
  node_add_body_field($types['pmnote'], 'Description');
}