How to create nested OR, AND conditions in drupal query builder
If you need Facebook like single thread messaging between two users even while using new message form, using privatemsg in your drupal website. Please read more.
An illegal choice has been detected in drupal select field|Bypass validation for ajax loaded options
Error : An illegal choice has been detected. Please contact the site administrator.
while trying to use ajax to load dynamic options in select field in drupal form api. Using Auto load on scroll of table select will give same error.
To change drupal's user edit page's theme from the default admin theme (Seven) to other theme (default theme or theme configured in themekey)
Drupal 7 Create node with node_add() in custom module
To alter the path of a js file included in .info in some special cases
like if you want a separate main script file on ur site for some special browsers like iphone or mobiles.
do the following in your template.php
We have node reference field "service type" on "service gallery" type content.
Node reference field's select list depends on which language u are in. Eg. If you are in fr language the list will have french service types and if the content u r editing is in english you will be connecting the english service gallery content to a french service type content.
So you need to be in english language to edit the english content so that the list will show english service types.
While working with custom forms with file upload fields in drupal, you may sometimes get a error regarding extensions:
The specified file “your file name here” could not be uploaded. Only files with the following extensions are allowed: “jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp”
To allow all extensions, you have to manually set the ‘file_validate_extensions’ validator to an empty array.
When you have more than one language on Drupal site, you have to define the default language among one of them. For example, if i set English as the default language, it will be shown in both http://<domain_name> and http://<domain_name>/en. but all the links in the default language will not have the en path prefix.