You are here

function _download_count_is_accessible_by_filefield in Download Count 7.2

Same name and namespace in other branches
  1. 6.2 download_count.module \_download_count_is_accessible_by_filefield()
3 calls to _download_count_is_accessible_by_filefield()
download_count_file_download in ./download_count.module
Implements hook_file_download().
download_count_view_page in includes/download_count.pages.inc
@file Page callback file for the download_count module.
_download_count_block_contents in ./download_count.module

File

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

Code

function _download_count_is_accessible_by_filefield($file) {
  $nodes = _download_count_get_nodes_by_filefield($file);
  if ($nodes === FALSE) {
    return FALSE;
  }
  if ($nodes === NULL) {
    return NULL;
  }
  return TRUE;
}