Wednesday, August 1, 2012

Module developer's guide

A Drupal site can have three kinds of modules (the 3 Cs):
  1. Core modules that ship with Drupal and are approved by the core developers and the community.
  2. Contributed modules written by the Drupal community and shared under the same GNU Public License (GPL) as Drupal.
  3. Custom modules created by the developer of the website.
This section of the Developing for Drupal handbook will help you to write your own modules and to collaborate with the community on shared projects.
Before you begin writing your own modules you should also become familiar with the following sections of the Developing for Drupal handbook:

Collaboration over competition

Module duplication is a growing concern within the Drupal community, which values joining forces on improving one awesome project rather than building several sub-standard ones that overwhelm end users with choices. Please remember to search existing modules andthemes first before embarking on your quest, and consider whether your project would be better as a feature addition or patch on an existing project. You could save yourself some time, and earn community karma by helping others!
The following pages will guide you step-by-step through the creation of modules.

1 comment:

  1. There are numerous hosting solutions available in the market but few are acquiescent for development environment in comparison to Drupal hosting. Drupal hosting had humble origins and started out as a message board but due to its ease of use and user friendly features it garnered the attention of developers community.

    Drupal Hosting I Managed Drupal Hosting


only show translated menu items into current language (Drupal 8)

function MY_THEME_preprocess_menu(&$variables) {   if ($variables['menu_name'] == 'brancott-header-menu') {    $langu...