コード例 #1
0
/**
 * Delete's a specific email list from the current domain.
 *
 * @param  Zend_Gdata_Gapps $gapps     The service object to use for communicating with the Google
 *                                     Apps server.
 * @param  boolean          $html      True if output should be formatted for display in a web browser.
 * @param  string           $emailList The email list that should be deleted.
 * @return void
 */
function deleteEmailList($gapps, $html, $emailList)
{
    if ($html) {
        echo "<h2>Delete Email List</h2>\n";
    }
    $gapps->deleteEmailList($emailList);
    if ($html) {
        echo "<p>Done.</p>\n";
    }
}