You are here

function pmorganization_update_7104 in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 pmorganization/pmorganization.install \pmorganization_update_7104()
  2. 7.2 pmorganization/pmorganization.install \pmorganization_update_7104()

Migrate PM Organization nodes to field_api fields.

File

pmorganization/pmorganization.install, line 106
PM Organization install file.

Code

function pmorganization_update_7104(&$sandbox) {
  if (!module_exists('pmpermission')) {
    module_enable(array(
      'pmpermission',
    ));
  }
  module_load_include('inc', 'pmorganization', 'includes/pmorganization.migrate');
  if (pmorganization_migrate_update_could_be_performed()) {
    return pmorganization_migrate($sandbox);
  }
}