Projet

Général

Profil

Révision 7e72b748

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/includes/export-ui.inc
81 81
  // Add some default fields that appear often in exports
82 82
  // If these use different keys they can easily be specified in the
83 83
  // $plugin.
84

  
85 84
  if (empty($plugin['export']['admin_title']) && !empty($schema['fields']['admin_title'])) {
86 85
    $plugin['export']['admin_title'] = 'admin_title';
87 86
  }
......
297 296
  );
298 297

  
299 298
  // Define strings.
300

  
301 299
  // For all strings, %title may be filled in at a later time via str_replace
302 300
  // since we do not know the title now.
303 301
  $plugin['strings'] += array(
......
414 412
 *   The id in the menu items from the plugin.
415 413
 * @param $export_key
416 414
 *   The export key of the item being edited, if it exists.
415
 *
417 416
 * @return
418 417
 *   The menu path to the plugin's list.
419 418
 */
......
429 428
 * Helper function to include CTools plugins and get an export-ui exportable.
430 429
 *
431 430
 * @param $plugin_name
432
 *   The plugin that should be laoded.
431
 *   The plugin that should be loaded.
433 432
 */
434 433
function ctools_get_export_ui($plugin_name) {
435 434
  ctools_include('plugins');
436 435
  return ctools_get_plugins('ctools', 'export_ui', $plugin_name);
437

  
438 436
}
439 437

  
440 438
/**
......
456 454
  $args = func_get_args();
457 455
  $js = !empty($_REQUEST['js']);
458 456

  
459
  // Load the $plugin information
457
  // Load the $plugin information.
460 458
  $plugin = ctools_get_export_ui($plugin_name);
461 459
  $handler = ctools_export_ui_get_handler($plugin);
462 460

  
463 461
  if ($handler) {
464 462
    $method = $op . '_page';
465 463
    if (method_exists($handler, $method)) {
466
      // replace the first two arguments:
464
      // Replace the first two arguments:
467 465
      $args[0] = $js;
468 466
      $args[1] = $_POST;
469 467
      return call_user_func_array(array($handler, $method), $args);

Formats disponibles : Unified diff