drupal node_delete изменить сообщение по умолчанию успешно - PullRequest
1 голос
/ 09 ноября 2010

В Drupal,

Использую функцию node_delete для удаления узла,

После удаления по умолчанию отображается сообщение об успехе зеленым цветом текста и белом фоне alt text

Как изменить сообщение об удалении по умолчанию на следующее:

Удалить успешно

1 Ответ

1 голос
/ 09 ноября 2010

Вы можете установить переопределение строк в файле 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',
 );
...