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

So for example you could allow time() or random

Comments

StatusFileSize
new451 bytes

Here is a patch.

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

So views should be changed.

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

An alter hook together with some other functions.

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

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

Yes.

StatusFileSize
new1.41 KB

Here is the documentation + the type fix.

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.