function subscriptions_content_node_admin_nodes_submit in Subscriptions 2.0.x
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()
- 7 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'
- subscriptions_content_form_node_admin_content_alter in subscriptions_content/
subscriptions_content.module - Implements hook_form_alter().
- subscriptions_content_form_node_admin_nodes_alter in subscriptions_content/
subscriptions_content.module - Implements hook_form_alter().
File
- subscriptions_content/
subscriptions_content.module, line 623 - 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);
}
}
}
}