function notify_admin_skip_submit in Notify 7
Submit for the notify_admin_skip form.
File
- ./
notify.admin.inc, line 547 - Administrative pages callbacks for the Notify module.
Code
function notify_admin_skip_submit($form, &$form_state) {
unset($form);
$nodes = array();
$comts = array();
if (isset($form_state['values']['entities']) && $form_state['values']['entities']) {
foreach ($form_state['values']['entities'] as $dist => $ii) {
if ($ii['dist']) {
$nid = $form_state['complete form']['entities'][$dist]['nid']['#markup'];
$cid = $form_state['complete form']['entities'][$dist]['cid']['#markup'];
if ('-' == $cid) {
array_push($nodes, (int) $nid);
}
else {
array_push($comts, (int) $cid);
}
}
}
variable_set('notify_skip_nodes', $nodes);
variable_set('notify_skip_comments', $comts);
}
drupal_set_message(t('Skip flags saved.'));
// notify_skip_nodes
}