function heartbeat_messages_export_submit in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 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 491
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;
}
}