Thêm các trường cho User Profile (Drupal 5.7) ?
Chào các bạn,
Mình đang dùng Drupal 5.7 muốn user có thêm 1 số field mà không biết giải pháp như thế nào.
Ai có kinh nghiệm thì cùng thảo luận nhé.
Read moreHow do I format results from form Api?
I just built my first module today. It is inanely simple, but it works. I created two fields that the user fills in, and using the values from those fields I made it do a simple calculation. Now I'm trying to figure out how to take the results from those calculations and control the output a bit more. The only way that I have found to print the results from a form in drupal is with drupal_print_message. This works for single result equations, but later I need to be able to end up with multiple results and do more advanced formatting with tables or unordered list.
Read moreLesson #35 - Leveraging the AHAH capabilities in Drupal 6
This week in the Dojo, quicksketch will introduce the AHAH framework (think Ajax) in Drupal 6. The framework allows developers to build forms that dynamically change, without writing any new javascript. Come see examples of AHAH in core, and how you can AHAH enable contributed modules, such as adding a "More" fields button.
Read morePlease review #103171
Hello views aficionados. If anyone has the time, could you review the module posted in
It's a module (that I will recode as a patch to views itself, eventually) that provides views within forms. These views can be used to select nodes. It includes exposed filters and a pager, and it generally behaves exactly the same as any other view would.
The module even includes a test harness where you can click a few buttons and test the new form element with any view on your website.
This is not production code, but I wanted to alert people early. Please do review this module and let us know what you think. It's a lot of code, and may require some changes to the underlying views implementation, so the more people who try it, break it, and suggest changes the better. Also, you can use this to start testing with your own modules.
Read more#DANGEROUS_SKIP_CHECK: the most evil of the Form API properties
Tucked away in form.inc is the little-known #DANGEROUS_SKIP_CHECK property of the Form API. It's so evil that it's not even documented!
What can you use this little nugget of fiendishness for?
Read more
