Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be cool to be able to set the availibile functions in math expressions.
So for example you could allow time() or random
Comment | File | Size | Author |
---|---|---|---|
#7 | 1127678-custom-math-functions_1.patch | 1.41 KB | dawehner |
#3 | 1127678-custom-math-functions.patch | 751 bytes | dawehner |
#2 | 1127678-custom-math-functions.patch | 664 bytes | dawehner |
#1 | 1127678-custom-math-functions.patch | 451 bytes | dawehner |
Comments
Comment #1
dawehnerHere is a patch.
Comment #2
dawehnerSo views should be changed.
Comment #3
dawehnerAn alter hook together with some other functions.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedctools_math_expression_funtions should be 1) not a typo and 2) documented somewhere. :)
Comment #5
dawehnerIs ctools.api.php the right place to do it?
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedYes.
Comment #7
dawehnerHere is the documentation + the type fix.
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted, backported to 6.x-3.x as well.