You are here

function auditfiles_help in Audit Files 6.2

Same name and namespace in other branches
  1. 8.3 auditfiles.module \auditfiles_help()
  2. 8.2 auditfiles.module \auditfiles_help()
  3. 5 auditfiles.module \auditfiles_help()
  4. 6.3 auditfiles.module \auditfiles_help()
  5. 7.4 auditfiles.module \auditfiles_help()
  6. 7.3 auditfiles.module \auditfiles_help()
  7. 4.x auditfiles.module \auditfiles_help()

Implementation of hook_help().

File

./auditfiles.module, line 12

Code

function auditfiles_help($path, $arg) {
  switch ($path) {
    case 'admin/settings/auditfiles':
      return t('You can choose to exclude specific files, paths and extensions from the \'files not in database\' audit report by adding them to the relevant lists below.');
    case 'admin/help#auditfiles':
      return '<p>' . t('The audit files module performs an audit of the file table and the files directory to check for inconsistencies.') . '</p>';
    case 'admin/reports/auditfiles/notonserver':
      $output .= '<p>' . t('The files listed below are in the {files} table but the physical files do not exist on the server. This might mean the file has been deleted using a program such as FTP, or it may mean there is an error in the database.</p><p>If the file was uploaded using the upload module then you can click on the node number to view the item to which the missing file relates to try and determine what action needs to be taken, or you can click the edit link to open the node editing form directly.') . '</p>';
      $output .= '<p>' . t('Files in this list are relative to the files directory %directorypath.', array(
        '%directorypath' => file_directory_path(),
      )) . '</p>';
      return $output;
    case 'admin/reports/auditfiles':
      $output .= '<p>' . t('The files listed below are in the files directory on the server but appear to have no corresponding entry in the {files} table. Files in "temporary" folders such as those created by the image module are included in order to check that they are not filling up. You can choose to delete files from this report but remember that if you do this the action cannot be undone.') . '</p>';
      $output .= '<p>' . t('Files in this list are relative to the files directory %directorypath.', array(
        '%directorypath' => file_directory_path(),
      )) . '</p>';

      // If on the delete confirmation form then suppress the help message
      if ($_POST['operation'] == 'delete' && $_POST['files']) {
        $output = '';
      }
      return $output;
  }
}