function webfm_get_date_format in Web File Manager 5
Helper function to get date format string
1 call to webfm_get_date_format()
- theme_webfm_attachments in ./
webfm.module  - Displays file attachments in table
 
File
- ./
webfm.module, line 2050  
Code
function webfm_get_date_format() {
  static $dateformat;
  if (!$dateformat) {
    $date_format_type = variable_get('webfm_date_format', WEBFM_DATE_FORMAT_DAY);
    switch ($date_format_type) {
      case WEBFM_DATE_FORMAT_MONTH:
        $dateformat = 'm/d/y g:i a';
        break;
      case WEBFM_DATE_FORMAT_DAY:
      default:
        $dateformat = 'd/m/y g:i a';
        break;
    }
  }
  return $dateformat;
}