This screencast is a part of the Learn Drupal coding with NodeOne screencast series – a screencast series targeted at Drupal site builders who wants to learn Drupal coding. This episodes presents how to declare new functions in PHP.
This screencast covers the following topics:
- Creating/declaring new functions in PHP
- A few words about why declaring functions is important when coding for Drupal
- A few words about function arguments
- About returning values from functions
- How to write code comments for a function
- How to write code comments inline
- A quick look at api.drupal.org
Warning: This learning series is recorded by someone quite new to Drupal coding. There may be inaccuracies or examples that fall short of best practices. Please contribute a comment if you spot this!
Modules:
Additional Resources: