mim*_*ock 3 php drupal drupal-7
drupal中有几条消息.当出现php警告时,会引发错误消息,但模块也可以使用drupal_set_message()引发消息.问题是:有没有办法改变这些消息?例如,在每条消息中用'b'替换每个'a'.
谢谢!
虽然设置中没有消息更改,但您可以通过显示更改它们hook_preprocess_status_messages,请参阅http://api.drupal.org/api/drupal/includes--theme.inc/function/theme/7预处理和http:/ /api.drupal.org/api/drupal/includes--theme.inc/function/theme_status_messages/7.
编辑:您也可以尝试字符串覆盖检查http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/t/7,简称$conf['locale_custom_strings_en']['some message'] = 'some messbge';英语,_en如果不是英语则更改其他内容.
| 归档时间: |
|
| 查看次数: |
10897 次 |
| 最近记录: |