function custom_pub_entity_presave in Custom Publishing Options 7
Same name and namespace in other branches
- 8 custom_pub.module \custom_pub_entity_presave()
Implements hook_entity_presave().
hook_node_prepare() is not called when a node is created by entity_create() so use this hook to prepare nodes.
Parameters
$entity:
$type:
File
- ./
custom_pub.module, line 434 - Adds the ability to add Custom publishing options to the node Add/Edit forms.
Code
function custom_pub_entity_presave($entity, $type) {
if ($type == 'node') {
custom_pub_node_prepare($entity);
}
}