Heh, I knew I wasn't going mental
Did you manage to create that minimal plugin then?
I've just started to upgrade some plugins to the new PA, and seeing as the current
reference plugin is a bit
lacking, I'm reverse-documenting Thold.
Having cleared this plugin_$name_version issue up, I'm still not clear on how the plugin_$name_check_config function should be used.
Currently, it's called during installation of the plugin, in api_plugin_install. If at that point, the check fails (you return
false), the plugin goes into
Awaiting Configuration state. This leads me to believe that this function should to be used for checking missing dependencies / manual configuration, before enabling the plugin.
But suppose you then resolve the issue, after clicking the
Check link in plugin management, the state is not altered (api_plugin_check_config does not change it).
EDIT: whoops, just noticed that api_plugin_check_config($id) was missing in plugins.php:65, making clicking on Check do nothing However, this still doesn't change the above.
Is my reasoning on the usage correct?
Also, I presume that plugin_$name_upgrade is planned for future development, as it currently isn't called from anywhere.