function ctools_drush_export_op

Iterate through exportable object names, load them, and pass each object to the correct op function.

Parameters

$op:

$table_name:

$exportables:

1 call to ctools_drush_export_op()
ctools_drush_export_op_command in drush/ctools.drush.inc
Drush callback: Acts as the hub for all op commands to keep all arg handling etc in one place.

File

drush/ctools.drush.inc, line 521

Code

function ctools_drush_export_op($op = '', $table_name = '', $exportables = NULL) {
    $objects = ctools_export_crud_load_multiple($table_name, array_keys($exportables));
    $function = '_ctools_drush_export_' . $op;
    if (function_exists($function)) {
        foreach ($objects as $object) {
            $function($table_name, $object);
        }
    }
    else {
        drush_log(dt('CTools CRUD function !function doesn\'t exist.', array(
            '!function' => $function,
        )), 'error');
    }
}