You are here

function heartbeat_enable in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 heartbeat.install \heartbeat_enable()
  2. 6.2 heartbeat.install \heartbeat_enable()

install basic variables

File

./heartbeat.install, line 42

Code

function heartbeat_enable() {
  variable_set('heartbeat_enabled', 1);
  variable_set('heartbeat_show_time_grouped_items', 1);
  variable_set('heartbeat_show_message_times', 1);
  variable_set('message_types', array(
    'normal',
    'flag',
  ));
  variable_set('message_access_types', array(
    0 => 'private',
    1 => 'public to all',
    2 => 'actor and addressee only if exists',
    3 => 'public to connections if exists',
  ));
  variable_set('heartbeat_types', array(
    'summary',
    'single',
    'count',
  ));
  variable_set('heartbeat_perms', array(
    'Private',
    'Friends',
    'Full Site',
  ));
  variable_set('heartbeat_activity_no_duplicate_seconds', 172800);
  variable_set('heartbeat_activity_grouping_seconds', 7200);
  variable_set('heartbeat_activity_grouping_how_many', 5);
  variable_set('heartbeat_block_items_max', 100);
  variable_set('heartbeat_block_public_items_max', 25);
  variable_set('heartbeat_block_private_items_max', 25);
  variable_set('heartbeat_activity_date_format', 'Y-m-d H:i:s');
  drupal_set_message(t('Please visit !messages_page to import default heartbeat messages from other modules.', array(
    '!messages_page' => l(t('Heartbeat messages page'), 'admin/build/heartbeat'),
  )));
}