is there a way to ajaxify simplenews subscribe to newsletter block?
I was thinking of hook_form_alter ing it and adding my ajax callback, But its not working.
my_module_form_alter(&$form, &$form_state, $form_id) {
if ($form_id === 'simplenews_block_form_7182') {
$ajax = array(
'callback' => 'simplenews_block_form_validate',
'wrapper' => 'simplenews_wrapper_block',
'method' => 'replace',
'effect' => 'fade',
'progress' => array('message' => '')
);
$form['submit']['#executes_submit_callback'] = TRUE;
$form['submit']['#ajax'] = $ajax;
but now when I trigger the submit button i get
Fatal error: Call to undefined function simplenews_block_form_validate() in /includes/form.inc on line 1460