Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
1 answer
109 views

When to use a php function vs a drupal_ equivalent function?

I come from update my Coder module to the v1.3 and when I go to check one custom module I see the following message: Line 71: in most cases, replace the string function with the drupal_ ...
Adrian Cid Almaguer's user avatar
-3 votes
2 answers
73 views

Is my code valid and how does it relate to the coding standards?

How does the below piece of code relate to the Drupal coding standards? Notice that this function is not returning anything. $a = foo(); function foo() { // … drupal_func(); } Somebody claims ...
4 votes
1 answer
421 views

Where to write public, common, utility functions in Drupal?

At times you have to write little utility functions which will have a general scope (not restricted to the module you are working on) so that it can be called from anywhere in the project. I know I ...
nawfal's user avatar
  • 145
0 votes
1 answer
572 views

Parameter comment must be on the next line at position 1

I review my module code with http://pareview.sh and it returns an error: Line #94 - ERROR | Parameter comment must be on the next line at position 1 /** * Fetch node object properties. //<--- ...
Zafar Shah Faizi's user avatar