drupal node_delete更改默认消息成功

时间:2010-11-09 03:37:12

标签: drupal drupal-6 drupal-modules

在Drupal中,

使用node_delete函数删除节点

默认情况下删除后,它会以绿色文本和白色背景alt text

显示成功消息

如何更改默认删除邮件

  

删除成功

1 个答案:

答案 0 :(得分:1)

您可以在settings.php文件中为站点设置字符串覆盖。

见这里:

/**
 * String overrides:
 *
 * To override specific strings on your site with or without enabling locale
 * module, add an entry to this list. This functionality allows you to change
 * a small number of your site's default English language interface strings.
 *
 * Remove the leading hash signs to enable.
 */
# $conf['locale_custom_strings_en'] = array(
#   'forum'      => 'Discussion board',
#   '@count min' => '@count minutes',
# );

我认为你需要

    $conf['locale_custom_strings_en'] = array(
   '@type %title has been deleted.'      => 'Delete Success',
 );
相关问题