You are here

function heartbeat_messages_export_submit in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 heartbeat.admin.inc \heartbeat_messages_export_submit()

Submit handler to stay on the same form and show a textbox

_state

Parameters

array $form:

File

./heartbeat.admin.inc, line 1384
Admnistration tasks for heartbeat.

Code

function heartbeat_messages_export_submit($form, &$form_state) {
  $count = 0;
  foreach ($form_state['values']['messages'] as $key => $value) {
    $count += $value;
  }
  if ($count) {
    $form_state['export'] = $form_state['values']['messages'];
    $form_state['rebuild'] = TRUE;
  }
}