You are here

function pmteam_update_7100 in Drupal PM (Project Management) 7.3

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

Adds Drupal 7 style body field to PM Team nodes.

File

pmteam/pmteam.install, line 57
Install, uninstall and update functions for the PM Team module.

Code

function pmteam_update_7100() {

  // Uncache node types.
  node_types_rebuild();

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