Add a place for a write switch

This commit is contained in:
Alexey Shpakovsky 2021-05-30 23:24:15 +02:00
parent 0c76615913
commit e5cad65df0
1 changed files with 11 additions and 1 deletions

12
abook_class.php Normal file → Executable file
View File

@ -201,7 +201,17 @@ class abook_carddav extends addressbook_backend {
function list_addr() {
if(!$this->listing) { return array(); }
// list all addresses having an email
return $this->run_query(['EMAIL' => "//"]);
return array_merge(
/*
// TODO: a link to switch writeable status
array(array(
'special_message'=>'The address book is currently in (non)writeable mode. <a href="...">Click here to switch it to (non)writeable mode</a>',
'backend' => $this->bnum,
'source' => $this->sname,
)),
*/
$this->run_query(['EMAIL' => "//"]));
}
/**