How to create your own Drupal Module?

Just to package your drupal module you will need to do the following:

1. setup composer
2. download drush from github
3. install drush
4. copy into your /usr/bin folder
5. enable git on drupal profile page

And that is just 10% .. still have about 90% more to go.. one of which is to create the module.. ^_^

Drupal is consistently checking your spellings with your naming conventions so please no spelling mistakes

Creating rest services to update the users profiles via an external form. Using the module Services on the Drupal module list.

Issue #1:
Note to self: the error notes for the service is not exactly the smartest tool in the shed. I did a post update and it keeps returning "404 Not found : Could not find the controller" when I am so so very sure the profile has been activated. I know this because my GET command works. After searching and scouring the web I realised my argument fields was incomplete. Ughs! So make sure your arguments are correct else just check the function checkNumberOfArguments() in the Restserver.inc to find out where ya went wrong.

Issue #2
"CSRF validation failed". You will need to use to ajax to retrieve a security token prior to submitting post changes to the system.

To render a template on Drupal you will need to identify it in the hook theme and renaming the tpl to match the id of the rendering function.

Comments

Popular posts from this blog

Chat Tu Chak Market

Rainy Saturday