You are here

function pmtask_update_7100 in Drupal PM (Project Management) 7

Adds Drupal 7 style body field to Project Management Task nodes

File

pmtask/pmtask.install, line 260
Install, disable, uninstall and update functions for pmtask module.

Code

function pmtask_update_7100() {

  // Uncache node types
  node_types_rebuild();

  // Fetch list of current node types
  $types = node_type_get_types();

  // Add body field to Project Management Task
  node_add_body_field($types['pmtask'], 'Description');
  return 'Added D7 style body field to Project Management Task nodes';
}