I am programatically trying to create a custom node to store some content, which I would like to display on a page. Following is how I am executing it.
$node = new StdClass();
$node->name = $value;
$node->title = $node->name;
$node->language = LANGUAGE_NONE;
$node->body[$node->language][0]['value'] = $javascript.$html;
$node->body[$node->language][0]['summary'] = $type;
$node->type = "custom_type";
$node->created = time();
node_save($node);
I notice that the content I inserted are present in the tables 'field_data_body' and 'field_revision_body' I try to load the node and get the content
$query = new EntityFieldQuery();
$entities = $query->entityCondition('entity_type', 'node')
->propertyCondition('type', 'custom_type')
->propertyCondition('title', $type)
->execute();
if (!empty($entities['node'])) {
$node = node_load(array_shift(array_keys($entities['node'])));
$html = $html.$node->body[$node->language][0]['value'];
}
But what puzzles me is how from where is the content being loaded. I deleted the entries in both 'field_data_body' and 'field_revision_body', but the content still gets loaded.
So how does drupal7 save and load the contents of the node body?
taxonomy_index
,node
andnode_revision
are tables and neither have anything to do with the node bodies.