You are here

function _heartbeat_stream_defaults in Heartbeat 6.4

Helper function to get the stream default properties

1 call to _heartbeat_stream_defaults()
heartbeat_check_access_types in ./heartbeat.module
Check if there no new heartbeat access types available

File

./heartbeat.common.inc, line 166
Commonly functions used in heartbeat

Code

function _heartbeat_stream_defaults($values) {
  $default = array(
    'name' => '',
    'class' => '',
    'path' => '',
    'module' => '',
    'access' => 1,
    'status' => 'default',
    'messages_denied' => array(),
    'display_filters' => 0,
    'display_block_filters' => 0,
    'filters' => array(),
    'filters_cumul' => 0,
    'settings' => array(
      'block_items_max' => 10,
      'block_show_pager' => 2,
      'page_items_max' => 15,
      'page_show_pager' => 1,
      'page_pager_ajax' => 1,
      'num_load_max' => 30,
      'page_disabled' => 0,
      'skip_active_user' => 0,
    ),
    'poll_messages' => 0,
  );

  // if same string keys exist, the used configuration will
  // override the default one
  $update = array_merge($default, $values);
  return $update;
}