function statistics_block_configure

Implements hook_block_configure().

Archivo

drupal-7.x/modules/statistics/statistics.module, line 326
Logs and displays access statistics for a site.

Código

function statistics_block_configure($delta = '') {
  // Popular content block settings
  $numbers = array('0' => t('Disabled')) + drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 40));
  $form['statistics_block_top_day_num'] = array(
    '#type' => 'select',
    '#title' => t("Number of day's top views to display"),
    '#default_value' => variable_get('statistics_block_top_day_num', 0),
    '#options' => $numbers,
    '#description' => t('How many content items to display in "day" list.'),
  );
  $form['statistics_block_top_all_num'] = array(
    '#type' => 'select',
    '#title' => t('Number of all time views to display'),
    '#default_value' => variable_get('statistics_block_top_all_num', 0),
    '#options' => $numbers,
    '#description' => t('How many content items to display in "all time" list.'),
  );
  $form['statistics_block_top_last_num'] = array(
    '#type' => 'select',
    '#title' => t('Number of most recent views to display'),
    '#default_value' => variable_get('statistics_block_top_last_num', 0),
    '#options' => $numbers,
    '#description' => t('How many content items to display in "recently viewed" list.'),
  );
  return $form;
}