function subscriptions_content_form_node_admin_content_alter in Subscriptions 7
Same name and namespace in other branches
- 6 subscriptions_content.module \subscriptions_content_form_node_admin_content_alter()
- 2.0.x subscriptions_content/subscriptions_content.module \subscriptions_content_form_node_admin_content_alter()
Implements hook_form_alter().
Adds a submit handler to catch bulk content operations and suppress notifications by default.
_state
Parameters
array $form:
File
- ./
subscriptions_content.module, line 538 - Subscriptions to content events
Code
function subscriptions_content_form_node_admin_content_alter(array &$form, array &$form_state) {
if (isset($form['admin']['options'])) {
$form['admin']['options']['subscriptions_notify'] = array(
'#type' => 'checkbox',
'#title' => t('Send subscriptions notifications'),
'#description' => '<br />' . t('When publishing unpublished nodes, this should probably be turned ON.'),
'#prefix' => '<br />',
);
array_unshift($form['admin']['options']['submit']['#submit'], 'subscriptions_content_node_admin_nodes_submit');
}
}