You are here

function pmperson_update_7100 in Drupal PM (Project Management) 7

Adds Drupal 7 style body field to Project Management Person nodes.

File

pmperson/pmperson.install, line 81

Code

function pmperson_update_7100() {

  // Uncache node types
  node_types_rebuild();

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