function simplenews_form_alter in Simplenews 7.2
Same name and namespace in other branches
- 5 simplenews.module \simplenews_form_alter()
- 6.2 simplenews.module \simplenews_form_alter()
- 6 simplenews.module \simplenews_form_alter()
- 7 simplenews.module \simplenews_form_alter()
Implements hook_form_alter().
File
- ./
simplenews.module, line 863 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_form_alter(&$form, &$form_state, $form_id) {
// Add Simplenews settings to simplenews newsletter node form.
if (!empty($form['#node_edit_form'])) {
if (in_array($form['type']['#value'], simplenews_get_content_types())) {
_simplenews_node_form($form, $form_state);
}
}
}