function comment_unpublish_by_keyword_action_form
comment_unpublish_by_keyword_action_form($context)
Form builder; Prepare a form for blacklisted keywords.
See also
comment_unpublish_by_keyword_action()
comment_unpublish_by_keyword_action_submit()
Related topics
File
- modules/comment/comment.module, line 2642
- Enables users to comment on published content.
Code
function comment_unpublish_by_keyword_action_form($context) { $form['keywords'] = array( '#title' => t('Keywords'), '#type' => 'textarea', '#description' => t('The comment will be unpublished if it contains any of the phrases above. Use a case-sensitive, comma-separated list of phrases. Example: funny, bungee jumping, "Company, Inc."'), '#default_value' => isset($context['keywords']) ? drupal_implode_tags($context['keywords']) : '', ); return $form; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/comment_unpublish_by_keyword_action_form/7.x