]> git.mxchange.org Git - friendica.git/blob - doc/database/db_hook.md
Merge branch 'stable' into develop
[friendica.git] / doc / database / db_hook.md
1 Table hook
2 ===========
3
4 addon hook registry
5
6 Fields
7 ------
8
9 | Field    | Description                                                                                                | Type              | Null | Key | Default | Extra          |
10 | -------- | ---------------------------------------------------------------------------------------------------------- | ----------------- | ---- | --- | ------- | -------------- |
11 | id       | sequential ID                                                                                              | int unsigned      | NO   | PRI | NULL    | auto_increment |
12 | hook     | name of hook                                                                                               | varbinary(100)    | NO   |     |         |                |
13 | file     | relative filename of hook handler                                                                          | varbinary(200)    | NO   |     |         |                |
14 | function | function name of hook handler                                                                              | varbinary(200)    | NO   |     |         |                |
15 | priority | not yet implemented - can be used to sort conflicts in hook handling by calling handlers in priority order | smallint unsigned | NO   |     | 0       |                |
16
17 Indexes
18 ------------
19
20 | Name               | Fields                       |
21 | ------------------ | ---------------------------- |
22 | PRIMARY            | id                           |
23 | priority           | priority                     |
24 | hook_file_function | UNIQUE, hook, file, function |
25
26
27 Return to [database documentation](help/database)