You are here

function heartbeat_block_save in Heartbeat 7

Implements hook_block_save().

File

./heartbeat.module, line 423
Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.

Code

function heartbeat_block_save($delta = '', $edit = array()) {
  if ($delta == 'heartbeat_active_users') {
    variable_set('heartbeat_active_users', isset($edit['view_mode']) ? $edit['view_mode'] : 'default');
    return;
  }
  $stream = heartbeat_stream_config_load($delta);
  variable_set('heartbeat_show_user_profile_messages_' . drupal_strtolower($stream->class), $edit['items']);
  variable_set('exclude_og_' . drupal_strtolower($stream->class), $edit['exclude_og']);
}