Lack of interest Importer Improvement: stepValidation option

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Jeremy

in memoriam 1991-2020
When creating steps for an importer, you have the following items in the options:
- title
- depends

I think it would be beneficial to have the option to include a third option of "stepValidation" so that we can define a call back within the importer class to do a more advanced verification of step availability.
My theory for this is that I'm working on an importer, and want to support importing of custom BBCodes, but I don't want to have the option available unless BBCM is installed. If I had this third option, I could create a _validateBBCMInstalled() function that returns true or false on whether or not the system should be available or not.

As a side note: Here's how I accomplished it without this:
PHP:
if(XenForo_Application::autoload('KingK_BbCodeManager_BbCodeManager'))
{
$steps['bbcodes'] = array('title' => 'Import Custom BBCodes');
}
Worked like a charm.
 
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Top Bottom