| | 238 | === create_contact === |
| | 239 | |
| | 240 | Triggered when an address book record is saved.[[BR]] |
| | 241 | A plugin can prevent the contact to be created by setting the {{{abort}}} field to true. The user is then rejected back to the input form. |
| | 242 | |
| | 243 | ''Arguments:'' |
| | 244 | * record: ''Hash array with record fields'' |
| | 245 | * source: ''Address book identifier'' |
| | 246 | |
| | 247 | ''Return values:'' |
| | 248 | * record |
| | 249 | * abort |
| | 250 | |
| | 251 | |
| | 252 | === save_contact === |
| | 253 | |
| | 254 | Triggered when an address book record is saved.[[BR]] |
| | 255 | As in the ''create_contact'' hook this action can be aborted by setting the {{{abort}}} field to true. |
| | 256 | |
| | 257 | ''Arguments:'' |
| | 258 | * id |
| | 259 | * record: ''Hash array with record fields'' |
| | 260 | * source: ''Address book identifier'' |
| | 261 | |
| | 262 | ''Return values:'' |
| | 263 | * record |
| | 264 | * abort |
| | 265 | |
| | 266 | |
| | 267 | === delete_contact === |
| | 268 | |
| | 269 | Triggered when an address book record is to be deleted.[[BR]] |
| | 270 | To abort the deletion a plugin can set the {{{abort}}} field to true. |
| | 271 | |
| | 272 | ''Arguments:'' |
| | 273 | * id |
| | 274 | * source: ''Address book identifier'' |
| | 275 | |
| | 276 | ''Return values:'' |
| | 277 | * abort |
| | 278 | |
| | 279 | |
| | 280 | |
| | 322 | === create_identity === |
| | 323 | |
| | 324 | Triggered when a user attempts to create a new sender identity.[[BR]] |
| | 325 | A plugin can prevent the record to be created by setting the {{{abort}}} field to true. The user is then rejected back to the input form. |
| | 326 | |
| | 327 | ''Arguments:'' |
| | 328 | * record: ''Hash array with identity record fields'' |
| | 329 | |
| | 330 | ''Return values:'' |
| | 331 | * record |
| | 332 | * abort |
| | 333 | |
| | 334 | |
| | 335 | === save_identity === |
| | 336 | |
| | 337 | Triggered when a user changes one of his sender identities.[[BR]] |
| | 338 | As in the ''create_identity'' hook this action can be aborted by setting the {{{abort}}} field to true. |
| | 339 | |
| | 340 | ''Arguments:'' |
| | 341 | * id |
| | 342 | * record: ''Hash array with identity record fields'' |
| | 343 | |
| | 344 | ''Return values:'' |
| | 345 | * record |
| | 346 | * abort |
| | 347 | |
| | 348 | |
| | 349 | === delete_identity === |
| | 350 | |
| | 351 | Triggered when a sender identity is to be deleted.[[BR]] |
| | 352 | To abort the deletion a plugin can set the {{{abort}}} field to true. |
| | 353 | |
| | 354 | ''Arguments:'' |
| | 355 | * id |
| | 356 | |
| | 357 | ''Return values:'' |
| | 358 | * abort |
| | 359 | |
| | 360 | |