friendica/doc/database/db_hook.md

28 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2015-12-27 20:50:25 -05:00
Table hook
===========
2021-06-14 02:10:11 -04:00
addon hook registry
2015-12-27 20:50:25 -05:00
2021-06-14 04:53:37 -04:00
Fields
------
2021-06-14 02:10:11 -04:00
| Field | Description | Type | Null | Key | Default | Extra |
| -------- | ---------------------------------------------------------------------------------------------------------- | ----------------- | ---- | --- | ------- | -------------- |
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
| hook | name of hook | varbinary(100) | NO | | | |
| file | relative filename of hook handler | varbinary(200) | NO | | | |
| function | function name of hook handler | varbinary(200) | NO | | | |
| priority | not yet implemented - can be used to sort conflicts in hook handling by calling handlers in priority order | smallint unsigned | NO | | 0 | |
2015-12-27 20:50:25 -05:00
2021-06-14 04:53:37 -04:00
Indexes
------------
2021-06-14 08:15:10 -04:00
| Name | Fields |
| ------------------ | ---------------------------- |
| PRIMARY | id |
| priority | priority |
2021-06-14 04:53:37 -04:00
| hook_file_function | UNIQUE, hook, file, function |
2015-12-27 20:50:25 -05:00
Return to [database documentation](help/database)