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
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]
So I client of mine wanted to use popups :) but not just ordinary popups, he wanted to put there, login, registration, node adding, notificiations, user invites for OG, simple menus and even FB login and registration. We also needed to save some user choices before the login/registration and act upon them after the user logs in.
As subject tries do describe, to build cool login screens that are popular now and you can find them on sites such as
https://www.icloud.com/ and https://app.buzzsumo.com/login you need to remove all the data from a page and just have content.
Continuing from http://drupaldump.com/ctools-modal-window-return-message-same-modal-win… we can also do some more stuff after one modal is submited, we can load another content in it. For example a whole node, we just need to load it and then render it properly.
I wanted to have a confirmation message in modal window, instead of closing the modal and having it on normal page. All that is needed is to check form_state after submit and add this part of code in form function