function subscriptions_content_node_admin_nodes_submit in Subscriptions 7
Same name and namespace in other branches
- 5.2 subscriptions_content.module \subscriptions_content_node_admin_nodes_submit()
- 6 subscriptions_content.module \subscriptions_content_node_admin_nodes_submit()
- 2.0.x subscriptions_content/subscriptions_content.module \subscriptions_content_node_admin_nodes_submit()
Handles bulk publishing.
_state
Parameters
array $form:
2 string references to 'subscriptions_content_node_admin_nodes_submit'
File
- ./
subscriptions_content.module, line 618 - Subscriptions to content events
Code
function subscriptions_content_node_admin_nodes_submit(array $form, array &$form_state) {
if (!$form_state['values']['subscriptions_notify']) {
subscriptions_content_suppress_notifications(TRUE);
}
elseif ($form_state['values']['operation'] == 'publish') {
foreach ($form_state['values']['nodes'] as $nid) {
if ($nid != 0 && ($node = node_load($nid)) && !$node->status) {
subscriptions_content_node_prepare($node);
subscriptions_content_node_update($node);
}
}
}
}