Configure Atom editor for Drupal development

Atom editor (or just Atom) is free and open source text and code editor build by GitHub. It is build using Chromium, nodejs, CoffeScript and Less. There are few other editors build using nodejs, second most popular project is Brackets. I've tried both and found Atom stable among two. Another advantage Atom has more plugins than Brackets. Recently I'm started to using it as alternate for Sublime Text.
It has many plugin for Drupal also. I'm using following plugins

How I do the development setup

In the following blog post I'm going to tell you how I set up my development environment. I hope people will find it useful.

Currently my work is mostly focused on drupal, but I've worked with C++, C# and Asp.net. First I'm going to tell you about general setup which is common for all technologies, after that I'll tell you about items specific to technologies.

Installing drush 7 in windows

Drush team recently released rc1 for version 7 of Drush, in this release they added a nice batch script to install it on windows. For this you have download latest 7.x release from https://github.com/drush-ops/drush/releases, extract zip in a partition other than OS partition (like D drive, I extracted it in D:\install\). Now start command prompt as administrator, for this search for cmd in start menu, on result list right click on cmd and choose "Run as Administrator".

Drush 7 installation script

To work with Drupal 8, we need Drush 7, which is in alpha stage of development. So there no package available for distribution (like Ubuntu, OpenSuse). Installation of Drush 7 is not as simple Drush 6, if you not familiar with composer, you may find it difficult to install, so I've written a shell script, which can be used to install Drush 7.

This script install drush 7 for normal user, you don't need root access to run it.

Creating a custom block in Drupal 8

Block is a very basic building block of any site. Blocks in drupal 8 are very different from what we are using in d7. In D8 blocks are plugins (like ctool content type plugin) and also entity. One more major improvement from site builder is that now you can have more than one instance of a block on same page, all instances can have different configuration, which was nightmare in d7. In d7 to achieve this you have to use either use panels or delta + context modules. Even in this way you can’t have different configuration for each instance.

Other Drupal Contributions

Beside of maintaining Webform reports and Read onlu mode module, I'm also contributing to few other modules.

1. NML Field : The National Center for Biotechnology Information (NCBI) of the National Library of Medicine (NLM) created the Journal Archiving and Interchange Tag Suite with the intent of providing a common format in which publishers and archives can exchange journal content. The Suite provides a set of XML schema modules that define elements and attributes for describing the textual and graphical content of journal articles as well as some non-article material such as letters, editorials, and book and product reviews. This module provides a series of field-types for storing NLM-DTD based data.

2. Panel Ajax Tabs : Provides the ability to have a tabbed panel-pane that displays mini-panels within it. It can pass context from the "master" panel to the mini-panels via AJAX.

Webform reports - Drupal Module

This module provides reporting capabilities to web form module.

Using it site admin can see the charts for submission data for certain period. It uses JqPlot JQuery plugin to generate charts.


  1. Download and copy module to sites/all/modules folder
  2. Download jqPlot jQuery plugin from http://www.jqplot.com/, extract the zip file.
  3. Rename extracted folder to jqplot, copy this folder inside js folder of webform_reports module folder.
  4. Assign permission "access all webform results" to the role for which you wan to allow to see webform reports.
  5. Goto /admin/reports/webform, select webform for which you want to see report and click submit to see reports.

Read only mode - Drupal Module

Read Only Mode provides an alternate to the built in Maintenance Mode in Drupal. Instead of displaying a static text file to users while the site is in maintenance mode, Read Only Mode will allow access (reading) of new content while preventing the addition of new content (posting / submitting forms / etc).

This allows the site to remain functional while maintenance is performed. This module also provides messaging to users and administrators to indicate that the site is in maintenance mode.

Subscribe to RSS - Drupal