It would be cool to be able to set the availibile functions in math expressions.

So for example you could allow time() or random

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

dawehner’s picture

Here is a patch.

dawehner’s picture

Project: Chaos tool suite (ctools) » Views
Version: 7.x-1.x-dev » 7.x-3.x-dev
FileSize
664 bytes

So views should be changed.

dawehner’s picture

Project: Views » Chaos tool suite (ctools)
Version: 7.x-3.x-dev » 7.x-1.x-dev
FileSize
751 bytes

An alter hook together with some other functions.

merlinofchaos’s picture

ctools_math_expression_funtions should be 1) not a typo and 2) documented somewhere. :)

dawehner’s picture

Is ctools.api.php the right place to do it?

merlinofchaos’s picture

Yes.

dawehner’s picture

Here is the documentation + the type fix.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed, backported to 6.x-3.x as well.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.