Reading through various material I came across the web, there are often instances of posts resembling the following:

"oh, to do that, you could use:" and then comes some PHP code using Drupal lingo, but with no indication of where to insert or change the code.

Is there anywhere a quick and down-to-earth explanation/description of how Drupal can be supplemented with additional code, what is the order of execution, Drupal mechanisms, which files to modify, etc?

I have started to read some introductions to Drupal programming, but they were rather hermetic and used more unknown words...

I found this article quite interesting:
https://bryce.fisher-fleig.org/blog/ditching-views-for-sql

and I want to know more of the same vein.

Comments

Jaypan’s picture

You need to learn three things in order to understand where to put code:

1) How Drupal hooks work

2) How to build a module

3) What template.php is in a theme (called [themename].theme in D8 I believe).

DrupalDope’s picture

thanks - is this a good starting point?
http://alanstorm.com/drupal_module_hooks

As a side note, I am unable to understand things unless accompanied by hands-on examples that include all the steps to make them work.

Jaypan’s picture

Start here and keep clicking next: https://www.drupal.org/node/292

DrupalDope’s picture

thanks!

any developments regarding the forum?

In the meanwhile I have modified phpBB3 to work as single sign on with Drupal and imbedded in the site template, it can appear as block or content.