auto_entitylabel.api.php in Automatic Entity Label 7
Same filename and directory in other branches
API documentation for Automatic Entity Label module.
File
auto_entitylabel.api.phpView 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
Name![]() |
Description |
---|---|
hook_auto_entitylabel_title_alter | Provide post-processing of auto generated titles (labels). |