コード例 #1
0
/**
 * Delete's a specific nickname 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           $nickname The nickname that should be deleted.
 * @return void
 */
function deleteNickname($gapps, $html, $nickname)
{
    if ($html) {
        echo "<h2>Delete Nickname</h2>\n";
    }
    $gapps->deleteNickname($nickname);
    if ($html) {
        echo "<p>Done.</p>\n";
    }
}