我安装了商务后台模块。在商店产品列表中有一个快速编辑按钮,实际上我需要将按钮的快速编辑标题更改为快速查看,请帮助我。
尝试hook_page_alter。
function my_modulename_page_alter(&$page) {
//find your button in $page variable and change its text.
}
您可以使用hook_form_alter来更改表单按钮上的文本。
我安装了商务后台模块。在商店产品列表中有一个快速编辑按钮,实际上我需要将按钮的快速编辑标题更改为快速查看,请帮助我。
尝试hook_page_alter。
function my_modulename_page_alter(&$page) {
//find your button in $page variable and change its text.
}
您可以使用hook_form_alter来更改表单按钮上的文本。