arckinteractive/Roles — pull request #2 by limdauto (2012-10-04 05:50:38+00:00)
Title: Fix create roles on plugin activation 

The roles_get_roles_from_config plugin hook is defined in the start.php while default roles are created in config in activate.php. Therefore, there is no default role created when the plugin is activated because elgg loads start.php after plugin activation, so the hook to generate roles in start.php doesn't take any effect on activate.php. Moving elgg_register_plugin_hook_handler('roles:config', 'role', 'roles_get_roles_config') from start.php to activate.php does the trick.