Scrap Emails From Gmail via Drush

In the following are steps to scrap emails from gmail account. We first archivete all emails into a file(.mbox). Then we run our custom drush command to scap all emails into output-email.csv file. At last, we use tool such as BriteVerify.com to filter only valid emails. Archive All Emails Go to Google Takeout and create […]

Read more...

Implementing Custom Drush Commands

In this post, we cover how to install and create your first custom Drush command Install Custom Drush Commands There are two steps to install any drush command: a) copy drushrc.php from /path/to/drush/example to your $HOME/.drush/ directory if not already present b) In the drushrc.php specify directory containing your drush cusotm commands This will import […]

Read more...

Importing and Exporting Products in Drupal Commerce

In prevous post Drupal Commerce Install and Setup, we went over on incorporating commerce functionality with Drupal and creating/displaying Products. In this post, we go over how to import/export Drupal commerce “products” as well as “product displays”. Important to note, there are “products” and then there are “product displays”. The “product display” is displaying one […]

Read more...

Import/Export Sample Data and Assets for Kickstart All via Features

This is an overview of the custom module – Sample Data developed and used at DesignsSquare.com that was published at Drupal.org for anyone that finds it useful. It is also at github – designssquare-lib-sample-data branch ‘7.x-1.x’ Issue: Widget or Theme needs sample data for kickstart. There is no automatic, easy and standard way to package […]

Read more...

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘field_xxx_display’ cannot be null:

If you are using Features module to import/export sample data like for kickstart data for your new feature. If you are using the newest version dependent modules – uuid and uuid_featurs(7.x-1.0-alpha or above) of the Feature module, then you will get the following error at the time importing sample data that contains field referencing asset […]

Read more...