You are here

function _privatemsg_list_thread_fallback in Privatemsg 6.2

Same name and namespace in other branches
  1. 6 privatemsg.module \_privatemsg_list_thread_fallback()

Table row definition for themes that don't support theme patterns.

Return value

Array with row data.

1 call to _privatemsg_list_thread_fallback()
_privatemsg_list_thread in ./privatemsg.module
Formats a row in the message list.

File

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

Code

function _privatemsg_list_thread_fallback($thread) {
  $row_data = array();
  foreach ($thread as $key => $data) {
    $theme_function = 'phptemplate_privatemsg_list_field__' . $key;
    if (function_exists($theme_function)) {
      $row_data[$key] = $theme_function($thread);
    }
  }
  return $row_data;
}