form-alter

Changing CCK Title for Form

陌路散爱 提交于 2019-12-10 21:18:36
问题 By default a CCK form creation has a title of the form Create [Your Content Type Name Here] I want to change mine to Register for Such and Such It was suggested that I could use string-override, but I can't find the string to replace. I've also tried writing code to form_alter, but can't seem to figure out how to get the "title" to change. Ideas? 回答1: There are two possibilities, either you can use the theming laying and set $title variable used in the page templage. You can do this with a