Simplenews - how pass values from own input How I can pass value from added input to database(?) in Simplenews? I want to use this value later in newsletter, e.g. print it in block template.

Below is how I created field

function news_hook_form_alter(&amp;$form, &amp;$form_state, $form_id){
    if($form_id == 'simplenews_block_form_2730'){
        $form['field_name'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; t('First name'),
        '#required' =&gt; TRUE,  
        '#size' =&gt; 20,  
);
}}
function my_module_form_alter(&amp;$form, &amp;$form_state, $form_id){
  if($form_id == 'YOUR_FORM_ID') {
    $form['field_name'] = array(
      '#type' =&gt; 'textfield',
      '#title' =&gt; t('Name'),
    );
    $form['field_name_submit'] = array(
      '#type' =&gt; 'submit',
      '#value' =&gt; t('SAVE'),
      '#submit' =&gt; array('my_module_name_submit'),
    );
  return $form;
  }
}

function my_module_name_submit($form,&amp;$form_state) {
  if ($form_state['values']['field_name']) {
    variable_set('Name', $form_state['values']['field_name']);
  }
}


variable_set stores textfield value in variable table. You can access/get this value using variable_get as mentioned below


  variable_get('Name')