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
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
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.
Recently I got to fix some older Drupal 6 site.
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
By default you can't set dynamic titles for views other than using contextual filters and using them to change title, this will sometimes help and sometimes you want to use something else, so custom modules/overrides to the rescue. There is also a page title module but you can use tokens with it and seems it doesnt work now.
Most likely you will want to insert an ADD, probably adsense add every nth row in views. To do that there are 3 methods. One of them is a module a guy made that acts as global filed you add and then you enter what goes in there, problem is that JS code doesnt work there as it is html only field, so some custom formatters should be added.
If you want to have an action happen on user who logs in first time and logs in right after the registration, without email verification. You can use the event "After saving a new user account" problem here is the in conditions you will not have any data about the current logged in user, as he will be logged in after that.