You are here

auto_entitylabel.api.php in Automatic Entity Label 7

Same filename and directory in other branches
  1. 8.3 auto_entitylabel.api.php
  2. 8.2 auto_entitylabel.api.php

API documentation for Automatic Entity Label module.

File

auto_entitylabel.api.php
View source
<?php

/**
 * @file
 * API documentation for Automatic Entity Label module.
 */

/**
 * Provide post-processing of auto generated titles (labels).
 *
 * @param array $titles
 *   Array of titles keyed by langcode.
 * @param object $entity
 *   The entity that the titles are from.
 *
 * @see auto_entitylabel_set_title
 */
function hook_auto_entitylabel_title_alter(&$titles, $entity) {

  // Trim the title.
  foreach ($titles as $k => $v) {
    $titles[$k] = trim($v);
  }
}

Functions

Namesort descending Description
hook_auto_entitylabel_title_alter Provide post-processing of auto generated titles (labels).