Use Drupal's localization module

Rather than alter the module source code, you should consider using the Drupal localization features, as described here:

http://drupal.org/node/24593

In the case you describe, I believe that the title is controlled by the hook_node_info callback:

<?php
function ed_classified_node_info() {
 
// beware: these must match nodeapi value; name must be same as $node->type for spam module to add spam reporting links
 
return array(EDI_CLASSIFIED_MODULE_NAME => 
               array(
'name' => t('Classified Ads'), // cannot call node_get_types() since it ends up calling this code.
                     
'module' => EDI_CLASSIFIED_MODULE_NAME,
                     
'description' => t('Contains a title, a body, and an administrator-defined expiration date')));
}
?>

It's best to use the localization module to alter the text, rather than modify the module sources, because you will need to migrate your customizations to any new release.

Mike – Thu, 11/08/2007 – 6:47am

Reply

This helps us decide if you are a human, and not just some visiting bot.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h3> <h4> <br> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.
More information about formatting options