Skip to content
Snippets Groups Projects
Commit c70b2fd5 authored by Jose Antonio Reyero del Prado's avatar Jose Antonio Reyero del Prado
Browse files

Issue #1408476 by Kristen Pol: Added help text for Translation redirect should...

Issue #1408476 by Kristen Pol: Added help text for Translation redirect should be dependent on Multilingual content module or nothing happens for nodes.
parent e788741c
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,19 @@
* Redirect to language path when we have a translation for the current language.
*/
/**
* Implements hook_help().
*/
function i18n_redirect_help($path, $arg) {
switch ($path) {
case 'admin/config/regional/i18n':
if (!module_exists('i18n_node')) {
$output = '<p>'. t('To have <em>Translation redirect</em> working with your content you should <a href="@admin_modules">enable the <em>Multilingual content</em> module</a>.', array('@admin_modules' => url('admin/modules'))) .'</p>';
return $output;
}
}
}
/**
* Implements hook_init()
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment