[RSS Feed/News] Access value of addon's another option inside validation callback?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hi experts,

I've the following validation class defined in one of the addon options
1673487879322.png

And inside this function, I'm attempting to get the value of another optionId
1673487925128.png

So is possible to get what its value is in the aforementioned callback function?

PHP:

Code:
public static function checkFoo(&$value, \XF\Entity\Option $option, $optionId)
{     
    /*
    if(genMulFirst == 'somevalue')
    {
        then go ahead and perform some validation for $value
    }
    */...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom