My frotend guy asked me to put 3 columns of data per one row in views output so he can put zen grids over them. Not sure if he really needs that but I made it for him with a view template. Selected unformmated display style type, created template
My frotend guy asked me to put 3 columns of data per one row in views output so he can put zen grids over them. Not sure if he really needs that but I made it for him with a view template. Selected unformmated display style type, created template
We needed to have a custom page or a block to only change email and password on that page, and the other user info we separated in different page. Sounds like a nice solution for users. So what we did is the following.
-custom menu item
-custom form
-validation and submit
This one is short but sweet. Usually drupal forms don't have cancel buttons that bring you back to previous page, so lets add one.
The title says it all :) add this to your module, into hook_form_alter and rock
When debuging enteties normal dpm with devel module just wont do you any good. So use this
http://drupal.stackexchange.com/questions/33473/is-there-a-good-way-to-…
and this for debugging or introspecting wrappers
If you are running into this error while using drush
Directory ..../drush/cache/default exists, but is not writable. [error] Please check directory permissions.
Run this to solve it
sudo drush version
sudo chown -R $USER ~/.drush
Using drush on local machine is great. If you have problems where drush can't connect to DB of your drupal, It is probably because of the problem with PHP path so either try something like this
https://github.com/drush-ops/drush#additional-configurations-for-mamp
I have been building a custom module that has Inviting users to a group feature in it. So there are this helper functions that are very useful.
user_load_by_mail($invitee_email)
will check if there is a user with specific mail, returning false if it is not, returning user object if there is one user with that email
There is a cool Facebook feature that you can easily implement, inviting or sending messages to Facebook friends with Facebook SDK
Just build a module, a block or whatever you want and put this code in
This is not so much drupal but sometimes you will move your drupal site to other domain, so then to have your home and all other pages properly redirected add this code to your .htaccess file
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.some-domain.co/$1 [R=301,L]