<!-- 
    Plugin: Hide Student Contacts
    Note: Hides Contacts tab and restores old Parents tab
-->
<script>
$j(function() {

    contactsTab = $j(".tabs a[href^='/admin/contacts/search.html'").closest("li");
    contactsTab.before('<li><a href="/admin/guardians/search.html">~[text:psx.html.admin.home.parents]</a></li>');
    // hide contacts unless enabled for the user's group
    ~[if#1.~[displaypref:hidecontacts_enablebygroup]=1]
    ~[if#2.~(studentscreenaccess;contacts.html)#1]
    contactsTab.hide();
    [/if#2]
    [else#1]
    contactsTab.hide();
    [/if#1]
    
});
</script>