option_nfs_title_description.inc in Node and Comments Form Settings 6.3
Same filename and directory in other branches
File
includes/option_nfs_title_description.incView source
<?php
/**
* Set the node title description (help text).
*/
function _option_nfs_title_description(&$form, &$form_state, $settings, $node) {
// Only proceed if the title element exists.
if (!isset($form['title'])) {
return $form;
}
// Set help text for title field.
$form['title']['#description'] = empty($form['title']['#description']) ? t($settings['nfs_title_description']) : $form['title']['#description'] . ' ' . t($settings['nfs_title_description']);
return $form;
}
Functions
Name![]() |
Description |
---|---|
_option_nfs_title_description | Set the node title description (help text). |