Default Friends Collections

Is it possible to set Newusers default Friend Collections, such as "Best Friends" "Family". If so is there a plugin that my extensive searching cannot find? 

  • In the create event function add a metadata on user after the access is created. Now before creation check for this metadata

     

  • this is what i got so far.

    <?php

    register_elgg_event_handler('init','system','MyCircles_Init');
    ////////////////////////////////////////////////////////////////////////////////
    function MyCircles_Init()
    {
        register_elgg_event_handler('login','user','MyCircles_Create_Default_Collections');
    }
    ////////////////////////////////////////////////////////////////////////////////
    function MyCircles_Create_Default_Collections($event,$type,$user)
    {
        create_access_collection('Close Friends',$user->guid);
        create_access_collection('Fakepals',$user->guid);
        create_access_collection('Family',$user->guid);
        return $return_value;
    }
    ////////////////////////////////////////////////////////////////////////////////
    function MyCircles_index($hook,$type,$return,$params)
    {
        if ($return == true)
        {
            //another hook has already replaced the front page
            return $return;
        }
        //if (!include_once(dirname(__FILE__) . "/index.php"))
        {
            return false;
        }
        //return true to signify that we have handled the front page
        return true;
    }
    ////////////////////////////////////////////////////////////////////////////////
    ?>

     

    Can you show me what and where I need to add a metadata?