You are here

function heartbeat_activity_stream_configure_validate in Heartbeat 6.4

Callback function to configure a heartbeat stream

File

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

Code

function heartbeat_activity_stream_configure_validate($form, $form_state) {
  if ($form_state['values']['num_load_max'] <= $form_state['values']['page_items_max'] || $form_state['values']['num_load_max'] <= $form_state['values']['block_items_max']) {
    form_set_error('num_load_max', t('Number of messages to load must be bigger than the maximum set on blocks and pages'));
  }
}