Function Hook_CMA->get_username

Definitions

sources/content.php

  • Get username for content.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$row array No No required parameter N/A N/A The database row for the content

Returns

  • Username (or message explaining lack of one)
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get username for content.
 *
 * @param  array $row The database row for the content
 * @return string Username (or message explaining lack of one)
 */

public function get_username(array $row) : string