drupal node_delete更改默认消息成功

发布于 2024-10-01 15:04:13 字数 201 浏览 0 评论 0原文

在Drupal中,

我使用node_delete函数删除节点,

删除后默认显示绿色文本和白色背景的成功消息  alt text

如何将默认删除消息更改为已读

删除成功

In Drupal ,

Am using node_delete function for delete the node,

After deleted by default it showing the success message in green color text and white background alt text

How can I change the default delete message to read

Delete Success

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

通知家属抬走 2024-10-08 15:04:13

您可以在站点的 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',
 );

You can set string overrides in your settings.php file for a site.

See here:

/**
 * 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',
# );

I think you would need

    $conf['locale_custom_strings_en'] = array(
   '@type %title has been deleted.'      => 'Delete Success',
 );
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文