You are here

function pmteam_install in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 8 pmteam/pmteam.install \pmteam_install()
  2. 7.3 pmteam/pmteam.install \pmteam_install()
  3. 7.2 pmteam/pmteam.install \pmteam_install()

Implements hook_install().

File

pmteam/pmteam.install, line 10
Install, uninstall and update functions for Project Management Team

Code

function pmteam_install() {
  variable_set('node_options_pmteam', array(
    'status',
  ));
  variable_set('node_permissions_pmteam', 0);

  // Uncache node types
  node_types_rebuild();

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