You are here

function pmperson_install in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 8 pmperson/pmperson.install \pmperson_install()
  2. 7.3 pmperson/pmperson.install \pmperson_install()
  3. 7.2 pmperson/pmperson.install \pmperson_install()

Implements hook_install().

File

pmperson/pmperson.install, line 9

Code

function pmperson_install() {
  variable_set('node_options_pmperson', array(
    'status',
  ));
  variable_set('node_permissions_pmperson', 0);

  // Uncache node types
  node_types_rebuild();

  // Fetch list of current node types and add body field to pmproject
  $types = node_type_get_types();
  node_add_body_field($types['pmperson'], 'Description');
}