You are here

function download_count_block_save in Download Count 7.2

Same name and namespace in other branches
  1. 7.3 download_count.module \download_count_block_save()

Implements hook_block_save().

File

./download_count.module, line 275
Tracks file downloads for files stored in the drupal files table using the private files setting or custom private filefield.

Code

function download_count_block_save($delta, $edit) {
  variable_set('download_count_' . $delta . '_block_limit', $edit['download_count_' . $delta . '_block_limit']);
  variable_set('download_count_' . $delta . '_show_size', $edit['download_count_' . $delta . '_show_size']);
  variable_set('download_count_' . $delta . '_show_last', $edit['download_count_' . $delta . '_show_last']);
  $delta == 'files' ? variable_set('download_count_files_file_links', $edit['download_count_files_file_links']) : NULL;
}