drupal

Form API Tip: Use form_set_value() to change form values during validation

Using Drupal's form api can often times make form validation and submission handling simple and effective. Today's tip is about using the form_set_value($form, $value) function to change a form item's value during the validation phase. This is convenient if you've done any manipulation to the submitted data during the validation process and you don't want to have to redo it in the submit process.

 

Vietnamese characters for pathauto.

We know to use pathauto module in drupal to make URL friendly but the default file i18n-ascii.txt not support Vietnamese characters.

For sample , your title "Tường thuật trực tiếp giải bóng đá Tây Ban Nha Villarreal gặp Barcelona" would be :

 

t%C6%B0%E1%BB%9Dng-thu%E1%BA%ADt-tr%E1%BB%B1c-ti%E1.....

 

but if you Vietnamese filter :

 

tuong-thuat-truc-tiep-giai-bong-da-tay-ban-nha-villarreal-gap-barcelona

 

Very nice , huh?

Drupal Multi-site - Hosting Multiple Domains from a Common Codebase

Drupal multi-site has the advantage of using one codebase for multiple websites and therefore enabling an administrator to centrally maintain and upgrade the code while serving similar or different content to different website on different domains.