Add a place for a write switch
This commit is contained in:
parent
0c76615913
commit
e5cad65df0
1 changed files with 11 additions and 1 deletions
12
abook_class.php
Normal file → Executable file
12
abook_class.php
Normal file → Executable file
|
@ -201,7 +201,17 @@ class abook_carddav extends addressbook_backend {
|
||||||
function list_addr() {
|
function list_addr() {
|
||||||
if(!$this->listing) { return array(); }
|
if(!$this->listing) { return array(); }
|
||||||
// list all addresses having an email
|
// 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' => "//"]));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue