Drupal Coding Standards - do and don't

In each and every language there is a need of following coding standards. The Coding standard will differ based on each language. This article will demonstrate the coding standard we should following for Drupal Content Management System(CMS). This article compares coding standards for both Drupal 7 and Drupal 8 with some demos. Also, it will support the best approach to hack the Drupal Core and Contrib modules.

The importance of Coding Standard:

  1. Code Readability
  2. Easy understand
  3. Commenting help for new developer to understand
  4. Easy enhancement
  5. Reuse of code

 

Category: