Tag Archives: Drupal 7

Drupal 7 – Avoid HTML tags stripped by CKEditor

Since version 4.1, CKEditor introduced the Advanced Content Filter(ACF) which limits some HTML tags so as to match the editor configuration in the best possible way. But that’s really annoying to me.

In order to disable the ACF, goes to @admin/config/content/ckeditor.

Select the profile and goes to Advanced Options. Add the following Custom JavaScript configuration.

  • config.allowedContent=true;

Continue reading

Drupal 7 – Alter the module execution order

Sometimes you may have 2 different modules implementing hook_form_alter() on the same form. In that case, the order of the module execution would follow the alphabetic order of the module name. If you want to alter the execution order, you could either update the system table in database or install the Modules Weight module.

1. Download and install the Modules Weight.

2. Go to admin/config/system/modules-weight to adjust the module weight.

Done =)


Drupal 7 – The form has become outdated

After enabling the Cache blocks option @ admin/config/development/performance, the form inside a custom block throws the following error.

  • The form has become outdated. Copy any unsaved work in the form below and then reload this page.


One work around is to disable cache for that specific custom block and this could be done by adding the DRUPAL_NO_CACHE in your hook_block_info().
Continue reading

General Assembly – Drupal Workshop in Hong Kong


General Assembly Hong Kong and I will be giving a Drupal Workshop on 14th August 2013 at the Hive. Make your reservation at the GA website.

Drupal is an open source Content Management System (CMS) and in this 2 hours workshop, we will go through the basic concepts on working with Drupal including Content Type, Node, Block, Module and Theme.

This class is a stepping stone for you to get into the Drupal world. Whether you are web developer, an entrepenuer or a project manager, by understanding the Drupal habitat, you will be able to consider whether Drupal is fit for your career, your business or your project.

Hope to see you there~ =)

Venue address:
The Hive
21st Floor, The Phoenix Building
No.23 Luard Road
Wan Chai
Hong Kong

Google Map

Drupal – Ubercart and SMTP Authentication Support

Finally i could use the Go Daddy email account as relay using the SMTP Authentication Support module in Drupal. I can send the testing email but it doesn’t work for those email triggered by the Ubercart module. This is because Ubercart has it own mail system so you have to tweak the setting such that it use the SMTP module to send email. This can be done by the Mail System module.

1. Download and install the Mail System module.

2. Go to the setting page @ admin/config/system/mailsystem.

3. Update the Cart module class, Order module class and Store module class such that they all use the SmtpMailSystem rather than UbercartMailSystem.
Continue reading