function _pmperson_migrate_node_get_body in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmperson/includes/pmperson.migrate.inc \_pmperson_migrate_node_get_body()
- 7.2 pmperson/includes/pmperson.migrate.inc \_pmperson_migrate_node_get_body()
A quick function to load node body without loading the whole node.
1 call to _pmperson_migrate_node_get_body()
- _pmperson_migrate_field_data in pmperson/
includes/ pmperson.migrate.inc - Helper function.
File
- pmperson/
includes/ pmperson.migrate.inc, line 602 - Migration functions for the PM Person module.
Code
function _pmperson_migrate_node_get_body($nid) {
$v = db_query('SELECT body_value FROM {field_data_body} WHERE entity_id = :nid AND entity_type = :entity_type', array(
':nid' => $nid,
':entity_type' => 'node',
))
->fetchField();
return $v;
}