TAPIr Hooks

TAPIr defines the following hooks for use in your modules:

  • hook_table_settings() - Defines the tables you want to appear in table lists and for which the module will auto-generate settings forms for table configuration.
  • hook_table_alter($table_id, $op) - Add fields to the table $table_id, using the same $op as the builder function ('fields' to define the fields and 'data' to return the data for those fields). Holy crap! This means tables are extensible and can be modified by other modules just like forms. Please see the Extensible Tables section below to read more about this incredible feature. Cool