You are here

function apachesolr_attachments_help in Apache Solr Attachments 6

Same name and namespace in other branches
  1. 6.2 apachesolr_attachments.module \apachesolr_attachments_help()

Implementation of hook_help().

File

./apachesolr_attachments.module, line 53
Provides a file attachment search implementation for use with the Apache Solr module

Code

function apachesolr_attachments_help($section) {
  switch ($section) {
    case 'admin/settings/apachesolr/index':
      if (!variable_get('apachesolr_read_only', 0)) {
        $remaining = 0;
        $total = 0;

        // Collect the stats
        $status = apachesolr_attachments_search('status');
        $remaining += $status['remaining'];
        $total += $status['total'];
        return t('<br />There @items remaining to be examined for attachments out of @total total.', array(
          '@items' => format_plural($remaining, t('is 1 post'), t('are @count posts')),
          '@total' => $total,
        ));
      }
      break;
  }
}