You are here

function pmticket_update_7100 in Drupal PM (Project Management) 7

Adds Drupal 7 style body field to Project Management Ticket nodes

File

pmticket/pmticket.install, line 257
Installation functions for the Project Management project module

Code

function pmticket_update_7100() {

  // 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['pmticket'], 'Description');
  return 'Added D7 style body field to Project Management Ticket nodes';
}