auto_nodetitle.api.php in Automatic Nodetitles 7
Automatic node titles api file.
File
auto_nodetitle.api.phpView source
<?php
/**
* @file
* Automatic node titles api file.
*/
/**
* Implements hook_auto_nodetitle_alter().
*/
function hook_auto_nodetitle_alter(&$node) {
// Alter node title here.
if (strpos($node->title, 'world') !== false) {
$node->title = 'Hello world!';
}
}
Functions
Name | Description |
---|---|
hook_auto_nodetitle_alter | Implements hook_auto_nodetitle_alter(). |