You are here

function privatemsg_theme in Privatemsg 6

Same name and namespace in other branches
  1. 6.2 privatemsg.module \privatemsg_theme()
  2. 7.2 privatemsg.module \privatemsg_theme()
  3. 7 privatemsg.module \privatemsg_theme()

File

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

Code

function privatemsg_theme() {
  return array(
    'privatemsg_view' => array(
      'arguments' => array(
        'message' => NULL,
      ),
      'template' => variable_get('private_message_view_template', 'privatemsg-view'),
    ),
    'privatemsg_from' => array(
      'arguments' => array(
        'author' => NULL,
      ),
      'template' => 'privatemsg-from',
    ),
    'privatemsg_recipients' => array(
      'arguments' => array(
        'message' => NULL,
      ),
      'template' => 'privatemsg-recipients',
    ),
    'privatemsg_between' => array(
      'arguments' => array(
        'recipients' => NULL,
      ),
      'template' => 'privatemsg-between',
    ),
    'privatemsg_list' => array(
      'file' => 'privatemsg.theme.inc',
      'path' => drupal_get_path('module', 'privatemsg'),
      'arguments' => array(
        'form',
      ),
    ),
    // Define pattern for header/field templates. The theme system will register all
    // theme functions that start with the defined pattern.
    'privatemsg_list_header' => array(
      'file' => 'privatemsg.theme.inc',
      'path' => drupal_get_path('module', 'privatemsg'),
      'pattern' => 'privatemsg_list_header__',
      'arguments' => array(),
    ),
    'privatemsg_list_field' => array(
      'file' => 'privatemsg.theme.inc',
      'path' => drupal_get_path('module', 'privatemsg'),
      'pattern' => 'privatemsg_list_field__',
      'arguments' => array(
        'thread',
      ),
    ),
    'privatemsg_new_block' => array(
      'file' => 'privatemsg.theme.inc',
      'path' => drupal_get_path('module', 'privatemsg'),
      'arguments' => array(
        'count',
      ),
    ),
  );
}