function uniqueness_help in Uniqueness 7
Same name and namespace in other branches
- 6 uniqueness.module \uniqueness_help()
Implements hook_help().
File
- ./
uniqueness.module, line 61 - uniqueness.module
Code
function uniqueness_help($path, $arg) {
$output = '<p>' . t('The Uniqueness module helps you avoid duplicate content on your site by informing users of similar or related content as they create <em>new</em> or edit <em>existing</em> content.');
switch ($path) {
case 'admin/config/content/uniqueness':
$output .= ' ' . l(t('Learn more'), 'admin/help/uniqueness');
$output .= '</p>';
return $output;
case 'admin/help#uniqueness':
$output .= '</p>';
$output .= '<p>' . t('A block and/or in-line user interface element is added to the content adding and/or editing form.') . ' ' . t('As the user types, Uniqueness searches on the title or vocabulary fields and displays a list of similar content.') . ' ' . t('To configure overall options such as search and appearance, visit the <a href="@uniqueness-settings-page">uniqueness settings</a> page. To use the in-line user interface element, enable it on each desired <a href="@content-types-page">content type</a> configuration page.', array(
'@content-types-page' => url('admin/structure/types'),
'@uniqueness-settings-page' => url('admin/config/content/uniqueness'),
)) . '</p>';
$output .= '<h3>' . t('Search modes') . '</h3>';
$output .= '<p>' . t('The module can find related content using one of three possible methods:') . '</p>';
$output .= '<dl>';
$output .= '<dt>' . t('Simple node title search (default)') . '</dt>' . '<dd>' . t('Matches the title of a new node by comparing the new title with the title of existing nodes.') . '</dd>';
$output .= '<dt>' . t('Drupal search') . '</dt>' . '<dd>' . t('Searches for content using the standard search module. Requires the core search module to be enabled.') . '</dd>';
$output .= '<dt>' . t('Apache Solr search') . '</dt>' . '<dd>' . t('Searches using the <a href="@apachesolr-project">Apache Solr</a> module. Apache Solr must be to be installed, enabled and configured.', array(
'@apachesolr-project' => url('http://drupal.org/project/apachesolr'),
)) . '</dd>';
$output .= '</dl>';
return $output;
}
}