function subscriptions_content_node_admin_nodes_submit in Subscriptions 5.2
Same name and namespace in other branches
- 6 subscriptions_content.module \subscriptions_content_node_admin_nodes_submit()
- 7 subscriptions_content.module \subscriptions_content_node_admin_nodes_submit()
- 2.0.x subscriptions_content/subscriptions_content.module \subscriptions_content_node_admin_nodes_submit()
Handle bulk publishing.
File
- ./
subscriptions_content.module, line 619 - Subscriptions to content events
Code
function subscriptions_content_node_admin_nodes_submit($form_id, $form_values) {
if ($form_values['operation'] == 'publish') {
foreach ($form_values['nodes'] as $nid) {
if ($nid != 0 && ($node = node_load($nid)) && !$node->status) {
subscriptions_content_nodeapi($node, 'prepare');
subscriptions_content_nodeapi($node, 'update', TRUE);
// (avoid autosubscribe)
}
}
}
}