function i18ncontent_help in Internationalization 6
Implementation of hook_help().
File
- i18ncontent/
i18ncontent.module, line 19 - Internationalization (i18n) package - translatable content type parameters
Code
function i18ncontent_help($path, $arg) {
switch ($path) {
case 'admin/help#i18ncontent':
$output = '<p>' . t('This module will localize all content type configuration texts.') . '</p>';
$output .= '<ul>';
$output .= '<li>' . t('Content type names') . '</li>';
$output .= '<li>' . t('Submission guidelines') . '</li>';
$output .= '<li>' . t("Content type descriptions were previously localized so they won't be affected.") . '</li>';
$output .= '</ul>';
$output .= '<p>' . t('To search and translate strings, use the <a href="@translate-interface">translation interface</a> pages.', array(
'@translate-interface' => url('admin/build/translate'),
)) . '</p>';
return $output;
}
// Add translated help text for node add pages
if (!menu_get_object() && $arg[1] == 'add' && $arg[2]) {
$type = str_replace('-', '_', $arg[2]);
// Fetch default language node type help
$source = i18ncontent_node_help_source($type);
if (isset($source->source) && ($help = i18nstrings("nodetype:type:{$type}:help", $source->source))) {
return '<p>' . filter_xss_admin($help) . '</p>';
}
}
}