Function __global->cns_get_details_to_show_post

Definitions

sources/cns_topicview.php

  • Turn a post row, into a detailed map of information that is suitable for use as display parameters for that post.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$_postdetails array No No required parameter N/A N/A The post row
$topic_info array No No required parameter N/A N/A The topic row
$only_post boolean No No False N/A N/A Whether the post is the only post in the topic

Returns

  • The detailed map
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Turn a post row, into a detailed map of information that is suitable for use as display parameters for that post.
 *
 * @param  array $_postdetails The post row
 * @param  array $topic_info The topic row
 * @param  boolean $only_post Whether the post is the only post in the topic
 * @return array The detailed map
 */

function cns_get_details_to_show_post(array $_postdetails, array $topic_info, bool $only_post = false) : array