Tag Archives: Drupal Development

Drupal – Delete all orders in Ubercart

I have created so many testing orders in the Ubercart during the development. So before i migrate the site to production, i have to clear all the testing orders. This could be done by deleting the order one by one through the View orders page.

But i got more than 100 testing orders and obviously the above method is not clever enough. Continue reading Drupal – Delete all orders in Ubercart

Drupal – Cron problem with drupal_goto() in hook_nodeapi()

One day, i found the the Drupal cron job failed to run. There was no error log and after i clicked the run cron manually in the status report, it was redirected to a specific node. This redirection was previously added by me in hook_nodeapi() such that under certain conditions, that specific node is displayed. Continue reading Drupal – Cron problem with drupal_goto() in hook_nodeapi()

Drupal – Send SOAP Request by NuSOAP

In PHP, we can use cURL library for generating SOAP request.
PHP – Send a SOAP Request by cURL

Except using the cURL library, we can also use the NuSOAP. The NuSOAP provides much more convenient way to create the SOAP request and it can be used in Drupal. The following example is base on the Blog post written be Eric London.
Executing a SOAP call from Drupal using nusoap Continue reading Drupal – Send SOAP Request by NuSOAP

Drupal – Add iframe in TinyMCE Editor

If you have installed the WYSIWYG module with TinyMCE Editor, you will find that it does not support the iframe element. Say if you embed a Google Map in the HTML body, it will disappear once you edit the node.

Ya, it’s Google again, i found a post written by Sam Michel who resolve the problem just by simply create a custom module with the hook_wysiwyg_plugin. Continue reading Drupal – Add iframe in TinyMCE Editor

Drupal – Override the php.ini

I was working for a Drupal website which i wanted to increase its maximum file upload size. This value is determined by the php.ini configuration file.

Unfortunately, the server hosting does not provide the SSH access so i can’t edit the php.ini. Therefore i have to let Drupal override the php.ini settings. There is 2 ways for Drupal to override the php.ini settings. Continue reading Drupal – Override the php.ini