function anonymous_publishing_form_alter in Anonymous Publishing 5
Implementation of hook_form_alter().
File
- ./
anonymous_publishing.module, line 28 - Installation file for the anonymous_publishing module.
Code
function anonymous_publishing_form_alter($form_id, &$form) {
$types = variable_get('anonymous_publishing_types', array());
if (isset($form['#node']) && $form_id == $form['#node']->type . '_node_form' && anonymous_publishing_content_type_allowed($form['#node']->type)) {
_anonymous_publishing_node_form($form, $form['#node']);
}
}