stpaultim / project_feed

GNU General Public License v2.0
0 stars 0 forks source link

hook_config_info() #1

Open ghost opened 2 years ago

ghost commented 2 years ago

https://github.com/stpaultim/project_feed/blob/d6e809f17d11d4523960c9f5cf5bf1e0a3e18f44/project_feed.module#L13

According to https://docs.backdropcms.org/api/backdrop/core%21modules%21config%21config.api.php/function/hook_config_info/1, it integrates your config with the UI so that people can export it.

Most people probably use Drush for importing/exporting config, but for those who use the UI, this hook is necessary.

stpaultim commented 2 years ago

@BWPanda - Thanks. That's helpful.

I had looked at the API documentation quickly, but didn't quite understand it at first glance. Your comments and a reread of the documentation are helpful.

As you can see, I was coping code from other modules and that seemed important.