andre 3 лет назад
Родитель
Сommit
ebc22e1466
1 измененных файлов с 0 добавлено и 34 удалено
  1. 0 34
      cwp7.php

+ 0 - 34
cwp7.php

@@ -464,40 +464,6 @@ function cwp7_UsageUpdate($params) {
 	}
 }
 
-/**
- * Additional actions a client user can invoke.
- *
- * Define additional actions a client user can perform for an instance of a
- * product/service.
- *
- * Any actions you define here will be automatically displayed in the available
- * list of actions within the client area.
- *
- * @return array
- */
-function cwp7_ClientAreaCustomButtonArray ($params) {
-	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
-	$response = $cwp7->getAccount($params['username']);
-	if($response['status'] != 'OK') {
-		logModuleCall(
-			'cwp7',
-			__FUNCTION__,
-			$params,
-			'debug',
-			$response
-		);
-	}
-	if(count($response['result']['domains']) < 2) {
-		return array(
-			'Neue Domaine' => 'newDomain',
-		);
-	};
-	return array(
-		'Neue Domaine' => 'newDomain',
-		'Neue Subdomaine' => 'newSubdomain',
-	);
-}
-
 /**
  * Additional actions a client user can invoke.
  *