Revision 6e3ce7c2
Added by Assos Assos over 3 years ago
drupal7/sites/all/modules/ctools/includes/export-ui.inc | ||
---|---|---|
456 | 456 |
|
457 | 457 |
// Load the $plugin information. |
458 | 458 |
$plugin = ctools_get_export_ui($plugin_name); |
459 |
$handler = ctools_export_ui_get_handler($plugin); |
|
460 |
|
|
461 |
if ($handler) { |
|
462 |
$method = $op . '_page'; |
|
463 |
if (method_exists($handler, $method)) { |
|
464 |
// Replace the first two arguments: |
|
465 |
$args[0] = $js; |
|
466 |
$args[1] = $_POST; |
|
467 |
return call_user_func_array(array($handler, $method), $args); |
|
468 |
} |
|
459 |
if (!$plugin) { |
|
460 |
return t('Configuration error. No plugin found: %plugin_name.', array('%plugin_name' => $plugin_name)); |
|
469 | 461 |
} |
470 |
else { |
|
462 |
|
|
463 |
$handler = ctools_export_ui_get_handler($plugin); |
|
464 |
if (!$handler) { |
|
471 | 465 |
return t('Configuration error. No handler found.'); |
472 | 466 |
} |
467 |
|
|
468 |
$method = $op . '_page'; |
|
469 |
if (method_exists($handler, $method)) { |
|
470 |
// Replace the first two arguments: |
|
471 |
$args[0] = $js; |
|
472 |
$args[1] = $_POST; |
|
473 |
return call_user_func_array(array($handler, $method), $args); |
|
474 |
} |
|
473 | 475 |
} |
Also available in: Unified diff
Weekly update of contrib modules