function internal_nodes_node_prepare in Internal Nodes 7
Implements hook_node_prepare().
File
- ./
internal_nodes.module, line 355 - Internal nodes
Code
function internal_nodes_node_prepare($node) {
if (variable_get('internal_nodes_nodes_' . $node->type, 0)) {
if (empty($node->internal_nodes) || $node->internal_nodes['source'] == 'content_type') {
// Set default values.
// Only happens when editing a node, or if node settings came from content type.
$node->internal_nodes = array(
'action' => 0,
'url' => variable_get('internal_nodes_url_' . $node->type, ''),
);
}
}
}