From my understanding, and as I've seen it in other examples of code, all I need to do to call a custom submit function is include the `"#submit" => array("myModule_submit");`. 

I use a drupal\_set\_message to post a message on the site so I can know if the myModule\_Submit is being called from the form submit button:

```
function myModule_submit($form, &$form_state) { 
  drupal_set_message($form_state['values']['name']);
}

```

When I click on the "Send" button nothing happens, and it seems the page just refreshes.

```
function myModule_form_builder($form, $form_state){
  $form['myModule_message'] = array(
    '#type' => 'textfield',
    '#title' => t("Outgoing Message"),
    '#size' => 150,
    '#maxlength' => 150,
    '#required' => TRUE,
    '#description' => t("Type your message"),
  );

  $form['buttons'] = array(
    '#type' => 'button',
    '#value' => t("Send"),
    '#submit' => array('myModule_submit'),
  );

  return $form;
}

function myModule_submit($form, &$form_state) {
  drupal_set_message($form_state['values']['name']);
}

```

To my understanding `drupal_set_message()` will display a message to the user on the current page somewhere given the parameters. When I put information in the fields and press submit though there are no messages. I have seen other examples on the web that use this method and they say it works.