Changeset 1160

Show
Ignore:
Timestamp:
06/18/07 11:10:44 (1 year ago)
Author:
ben
Message:

You can now delete communities.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/community/lib/communities_actions.php

    r1087 r1160  
    103103            if (run("permissions:check",array("userdetails:change", $page_owner))) { 
    104104                if (user_delete($page_owner)) { 
    105                     plugin_hook("community","publish",$page_owner); 
     105                    // plugin_hook("community","publish",$page_owner); 
    106106                    $messages[] = __gettext("The community was deleted."); 
    107107                } else { 
  • devel/mod/community/lib/communities_moderator_of.php

    r1095 r1160  
    1717            $info->icon = run("icons:get",$info->ident); 
    1818            $friends_menu = run("community:infobox:menu",array($info)); 
     19            if (run("permissions:check",array("userdetails:change", $info->ident))) { 
     20                $friends_menu .= "<a href=\"{$CFG->wwwroot}mod/community/index.php?page_owner=".$info->ident."&amp;action=community:delete\">Delete community</a>"; 
     21            } 
    1922            $friends_icon = user_icon_html($info->ident,COMMUNITY_ICON_SIZE); 
    2023            $link = $CFG->wwwroot.$info->username."/";