开发者

How to create a 'blog settings' tab in drupal to move all blog related edit forms to one place

开发者 https://www.devze.com 2023-01-12 14:08 出处:网络
I dont know if im asking the impossible, but i want to have a tab in my user edit area that houses all blog related items (ie blog theme, blog info, user blogroll) as opposed to them being inside the

I dont know if im asking the impossible, but i want to have a tab in my user edit area that houses all blog related items (ie blog theme, blog info, user blogroll) as opposed to them being inside the user/%/edit and user/%/edit profile.

Im putting together a开发者_如何学C multi-user site and this is crucial for user-friendliness.

Thanks for any ideas!


Nothing is impossible with Drupal, but doing this would be a challenge.

With hook_form_alter you can alter any form you want. The code for this would have to go to a custom module. Then you would have to recreate the form, with a page callback, and handle the validation and submission. You can probably recreate the code from the modules that create the forms in the first place.

Alternative, you can just leave the settings at user/%/edit and other places, and just create a special form with all blog relevant info. That way the users choose where to edit their info. It will probably be a better choice, since the "blog settings" that's location at user/%/edit, will be more tied to the user, than to the blog. So when a user wants to edit some of his personal details, that's when he would want to edit those blog settings as well.

Your specific might be different, but the default setup is usually a very good default.

0

精彩评论

暂无评论...
验证码 换一张
取 消