function file_entity_search_status

cis7 file_entity.module file_entity_search_status()
cle7 file_entity.module file_entity_search_status()
elmsmedia7 file_entity.module file_entity_search_status()
icor7 file_entity.module file_entity_search_status()
meedjum_blog7 file_entity.module file_entity_search_status()
mooc7 file_entity.module file_entity_search_status()

Implements hook_search_status().

File

sites/all/modules/ulmus/file_entity/file_entity.module, line 525
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_search_status() {
  $total = db_query('SELECT COUNT(*) FROM {file_managed}')->fetchField();
  $remaining = db_query("SELECT COUNT(*) FROM {file_managed} fm LEFT JOIN {search_dataset} d ON d.type = 'file' AND d.sid = fm.fid WHERE d.sid IS NULL OR d.reindex <> 0")->fetchField();
  return array(
    'remaining' => $remaining,
    'total' => $total,
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.