ElkArte Community

Elk Development => Feature Discussion => Topic started by: Joshua Dickerson on March 09, 2014, 03:54:41 pm

Title: Profile.subs.php $profile_fields options
Post by: Joshua Dickerson on March 09, 2014, 03:54:41 pm
Where does that get handled? It isn't in the doc block before the field.
Title: Re: Profile.subs.php $profile_fields options
Post by: emanuele on March 09, 2014, 04:17:50 pm
loadProfileFields is where the variable is filled with data.
Or you mean where the variable is actually used?
It's another of those meh things...
Title: Re: Profile.subs.php $profile_fields options
Post by: Joshua Dickerson on March 09, 2014, 07:02:44 pm
Yeah, I'm trying to find where the $options part is actually used.
Title: Re: Profile.subs.php $profile_fields options
Post by: emanuele on March 10, 2014, 07:57:03 am
Why are you asking questions only about meh code? :P

$options is used in several places all around the templates and controllers (maybe some subs too).
It should hold the per-user alternatives of the $settings.
Title: Re: Profile.subs.php $profile_fields options
Post by: Joshua Dickerson on March 10, 2014, 01:48:01 pm
Just wondering because it is a string of PHP code but it should probably be an anonymous function.