I'm working on an addon for a new site where we are going to start with 1.1 so I'm trying to use some of the new addon features that I've read about for 1.1. That said I haven't been able to get my .integrate.php file to work. It shows up in the Core Features, it lets me enable and disable it, but none of the hooks in the register method get loaded. As far as I can tell the class never ends up in the autoload_integrate setting, which I assume it's supposed to from what I've been able to track in the code. Any help would be much appreciated.
class Characters_Integrate
{
public static function setting_callback($value)
{
if ($value)
{
Hooks::get()->enableIntegration('Characters_Integrate');
}
else
{
Hooks::get()->disableIntegration('Characters_Integrate');
}
}
public static function register()
{
// $hook, $function, $file
return array(
array('integrate_action_post_before', 'Characters_Integrate::characterBeforePost'),
array('integrate_profile_areas', 'Characters_Integrate::loadCharacterProfileMenu'),
array('integrate_add_member_data', 'Characters_Integrate::addCharacterData'),
array('integrate_user_info', 'Characters_Integrate::loadCharacterSettings'),
array('integrate_member_context', 'Characters_Integrate::loadCharacterContext'),
);
}
public static function settingsRegister()
{
// $hook, $function, $file
return array();
}