Calling another function using drupal_get_form
$form['#submit'][] = 'myform_form_submit';


You can call your function as above. Or

function myform_form_submit($form, &amp;$form_state) {
  //execute your function here
}