Re: Bug or feature? ("Don't show users' avatars" setting)
Reply #4 –
The addon could be pretty simple, the way I would do it is to tweak the avatars_on_indexes setting just after the value is loaded with the user's choice:
<?php
class NoAvatarsOnIndex_Integrate
{
public static function integrate_init_theme($id_theme, &$settings)
{
global $options;
$settings['avatars_on_indexes'] = $settings['avatars_on_indexes'] && empty($options['show_no_avatars']);
}
}
and attach that to the integrate_init_theme hook, so:
<hook hook="integrate_init_theme" function="NoAvatarsOnIndex_Integrate::integrate_init_theme" file="SOURCEDIR/NoAvatarsOnIndex.integrate.php" />
added to the package_info.xml.