background preloader

Développement Drupal

Facebook Twitter

Testing

D contrib. Optimisation & performance. Vidéothèque. Top 20 mistakes you will make on your 1st Drupal project. Db queries. Rules. Form API Reference. Search for api. Search for api | Drupal 6. Drupal 7 : Développement de modules | Akabia. L’API de Drupal est certainement la plus complète comparée aux autres CMS concurrents. Drupal a toujours eu la réputation d’être le chouchou des développeurs notamment grâce à une construction bien pensée et une API robuste et puissante. Afin de vous renseigner sur l’API de Drupal, je ne citerai qu’un seul site qui rassemble à lui tout seul tout ce dont vous avez besoin pour prendre en main l’API de Drupal : et c’est tout! En guise d’introduction Au travers de cet article, nous allons parcourir rapidement les points essentiels pour créer un module sur Drupal.

Cependant, cela ne vous fournira qu’une base et il faudra bien évidemment approfondir pour devenir autonome dans la création de modules. Drupal a une particularité intéressante dans sa manière d’être codé. La possibilité de réutiliser le code à différents emplacements. Pour en savoir plus : Un petit tour du coté des fichiers Pour bien commencer. Creating modules - a tutorial: Drupal 7.x. Last updated September 30, 2014. Created by xaav on February 27, 2011.Edited by pbulebar, jmcejuela, chemical, drupalshrek. Log in to edit this page. This tutorial describes how to create a module for Drupal 7. If your goal is to convert a module from Drupal 6 or earlier to Drupal 7, see: Updating your modules. A module is a collection of functions that link into Drupal, providing additional functionality for your Drupal installation.

Requirements This tutorial assumes you have: Basic PHP knowledge, including syntax and the concept of PHP objectsBasic understanding of database tables, fields, records and SQL statementsA working Drupal 7 installationDrupal administration accessWebserver access This tutorial does not assume you have any knowledge about the inner workings of a Drupal module. For more information on module development, see Module Development with Drupal.

When finished This tutorial will not necessarily prepare you to write modules for public release. Looking for support? Devel methods. This page gives a brief overview of some of the tools you can use to make Drupal development and debugging easier. It covers the Devel contrib module, the Drupal for Firebug contrib module and Firefox extension, the FirePHP library, and the combination of NetBeans and Xdebug. This guide has a companion module available at Drupal.org. Post corrections or additions in the issue queue. Devel module In addition to the core module, the Devel package contains some other useful modules: Devel generate: Generates dummy users, nodes, and taxonomy terms. These modules are not covered in this guide.

Download and install the latest version of the Devel module from Drupal.org. Dpm() Prints a variable to the ‘message’ area of the page using drupal_set_message(). Dpm($input, $name = NULL) If, for some reason, you are not using Krumo, you can use the $name parameter to distinguish between different calls to dpm(). dvm() dvm($input, $name = NULL) dpr() dpr($input, $return = FALSE, $name = NULL) dvr() kpr() dargs()

Theming

CCK, entities. Drush.