node_unpublish_by_keyword_action_form
- Versions
- 6 – 7
node_unpublish_by_keyword_action_form($context)
Generates settings form for node_unpublish_by_keyword_action().
Code
modules/node/node.module, line 3185
<?php
function node_unpublish_by_keyword_action_form($context) {
$form['keywords'] = array(
'#title' => t('Keywords'),
'#type' => 'textarea',
'#description' => t('The content 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;
}
?>Login or register to post comments 