By cheese-steak on
From what I've read, the delta is the "offset". I take that to mean there it's some type return that is an increment either negative or positive. What I don't understand, is what it off-sets. How is the delta used, it's purpose in module development and over-rides?
What do you use as a guide for what value to assign the delta value under different circumstances?
Anything would be better than setting arbitrary values and crossing my fingers.
Thanks in advance for any help.
Pat.
Comments
Deltas are used in multiple
Deltas are used in multiple areas of Drupal. Which are you referring to? Sample code?
A generic idea would be if
A generic idea would be if you are re-using code for more than one item. For example, in hook_block(), you can create multiple blocks. The delta is basically a key to identify which particular block you are working on at that time.
Contact me to contract me for D7 -> D10/11 migrations.