You are here

function privatemsg_date_formats in Privatemsg 7

Same name and namespace in other branches
  1. 7.2 privatemsg.module \privatemsg_date_formats()

Implements hook_date_formats().

File

./privatemsg.module, line 3152
Allows users to send private messages to other users.

Code

function privatemsg_date_formats() {
  $formats = array(
    'g:i a',
    'H:i',
    'M j',
    'j M',
    'm/d/y',
    'd/m/y',
    'j/n/y',
    'n/j/y',
  );
  $types = array_keys(privatemsg_date_format_types());
  $date_formats = array();
  foreach ($types as $type) {
    foreach ($formats as $format) {
      $date_formats[] = array(
        'type' => $type,
        'format' => $format,
        'locales' => array(),
      );
    }
  }
  return $date_formats;
}