comment_unpublish_by_keyword_action_form

Definition

comment_unpublish_by_keyword_action_form($context)
modules/comment/comment.module, line 2066

Description

Form builder; Prepare a form for blacklisted keywords.

Related topics

Namesort iconDescription
Form builder functionsFunctions that build an abstract representation of a HTML form.

Code

<?php
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 character sequences above. Use a comma-separated list of character sequences. Example: funny, bungee jumping, "Company, Inc.". Character sequences are case-sensitive.'),
    '#default_value' => isset($context['keywords']) ? drupal_implode_tags($context['keywords']) : '',
  );
  return $form;
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.