comment_admin_overview_validate
modules/comment/comment.admin.inc, строка 82
- Версии
- 5
comment_admin_overview_validate(
$form_id,$form_values)- 6
comment_admin_overview_validate($form, &$form_state)
Validate comment_admin_overview form submissions.
We can't execute any 'Update options'
if no comments were selected.
Код
<?php
function comment_admin_overview_validate($form, &$form_state) {
$form_state['values']['comments'] = array_diff($form_state['values']['comments'], array(0));
if (count($form_state['values']['comments']) == 0) {
form_set_error('', t('Please select one or more comments to perform the update on.'));
drupal_goto('admin/content/comment');
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии