You are here

user_activity.admin.inc in Heartbeat 6.2

File

user_activity/user_activity.admin.inc
View source
<?php

// by Jochen Stals - ONE-agency - www.one-agency.be

/**
 * Function to maintain and administer specific settings
 *
 * @return settingsform
 */
function user_activity_admin_settings() {
  $form['user_activity_no_duplicate_seconds'] = array(
    '#title' => t('Seconds before an identical activity can be logged again'),
    '#type' => 'textfield',
    '#size' => 8,
    '#default_value' => variable_get('user_activity_no_duplicate_seconds', 3600),
  );
  $form['user_activity_grouping_seconds'] = array(
    '#title' => t('Maximum gap (in seconds) for the same activity to be grouped together'),
    '#type' => 'textfield',
    '#size' => 8,
    '#default_value' => variable_get('user_activity_grouping_seconds', 3600),
  );
  $form['user_activity_grouping_how_many'] = array(
    '#title' => t('Maximum number of items that can be grouped'),
    '#type' => 'textfield',
    '#size' => 8,
    '#default_value' => variable_get('user_activity_grouping_how_many', 5),
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
user_activity_admin_settings Function to maintain and administer specific settings