You are here

function simplenews_form_alter in Simplenews 7.2

Same name and namespace in other branches
  1. 5 simplenews.module \simplenews_form_alter()
  2. 6.2 simplenews.module \simplenews_form_alter()
  3. 6 simplenews.module \simplenews_form_alter()
  4. 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);
    }
  }
}