Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

i18ncontent_help

Definition

i18ncontent_help($path, $arg)
contributions/i18n/i18ncontent/i18ncontent.module, line 18

Description

Implementation of hook_help().

Code

<?php
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>';
      return $output;
  }
  if ($arg[0] == 'node' && $arg[1] == 'add' && $arg[2]) {
    $type = str_replace('-', '_', $arg[2]);
    if ($help = ts("nodetype:$type:help")) {
      return '<p>'. filter_xss_admin($help) .'</p>';
    }
  }  
}
?>