You are here

function pmtimetracking_update_7103 in Drupal PM (Project Management) 7

Adds Drupal 7 style body field to PM Timetracking content type.

File

pmtimetracking/pmtimetracking.install, line 194
Install functions for PM Timetracking.

Code

function pmtimetracking_update_7103() {

  // Uncache node types
  node_types_rebuild();

  // Fetch list of current node types and add body field to pm timetracking
  $types = node_type_get_types();
  node_add_body_field($types['pmtimetracking'], 'Description');
  return 'Added D7 style body field to pm timetracking nodes';
}