node_unpublish_by_keyword_action_form

6 node.module node_unpublish_by_keyword_action_form($context)
7 node.module node_unpublish_by_keyword_action_form($context)
8 node.module node_unpublish_by_keyword_action_form($context)

File

modules/node/node.module, line 2757
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_unpublish_by_keyword_action_form($context) {
  $form['keywords'] = array(
    '#title' => t('Keywords'), 
    '#type' => 'textarea', 
    '#description' => t('The post 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;
}
Login or register to post comments