You are here

redhen_org.api.php in RedHen CRM 8

Describes API functions for the RedHen Org module.

File

modules/redhen_org/redhen_org.api.php
View source
<?php

/**
 * @file
 * Describes API functions for the RedHen Org module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Alter the display name for a org.
 *
 * @param string $name
 *   The generated name.
 * @param Drupal\redhen_org\OrgInterface $org
 *   The org whose name is being generated.
 *
 * @return string
 */
function hook_redhen_org_name_alter(&$name, Drupal\redhen_org\OrgInterface $org) {

  // Use ALL CAPS when displaying Redhen Org name.
  return strtoupper($org
    ->get('name')->value);
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_redhen_org_name_alter Alter the display name for a org.