In Drupal 6, when theming a form, we had to call drupal_render($form) at the end of the form to render any elements that had not yet been rendered. I am trying to do the same in Drupal 7, but it's just giving me a white screen with no errors whatsoever. Here is my hook_theme():
I just wan't to know if there is an Affiliate Module for drupal 7?or for drupalcommerce?
It's part of my website features and I really need it. Please help me on this.
I'm completely sorry for this but I can't find the answer after searching on google.
I went to install Drupal on my localhost but I keep getting this error:
"Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)."
My database connections are correct. When I'm on my localhost I usually use "root" as the username with no password. I did try creating a new user with a password and still it won't connect.
I have code for creating comment programmatically in Drupal 6 and it's works. Since i want to move into Drupal 7, now my code doesn't work and it's give error. Here are my code in Drupal 7 :