Révision c2ac6d1d
Ajouté par Assos Assos il y a environ 5 ans
drupal7/sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.class.php | ||
---|---|---|
644 | 644 |
} |
645 | 645 |
|
646 | 646 |
public function add_page($js, $input, $step = NULL) { |
647 |
$args = func_get_args(); |
|
647 | 648 |
drupal_set_title($this->get_page_title('add'), PASS_THROUGH); |
648 | 649 |
|
649 | 650 |
// If a step not set, they are trying to create a new item. If a step |
... | ... | |
666 | 667 |
'no_redirect' => TRUE, |
667 | 668 |
'step' => $step, |
668 | 669 |
// Store these in case additional args are needed. |
669 |
'function args' => func_get_args(),
|
|
670 |
'function args' => $args,
|
|
670 | 671 |
); |
671 | 672 |
|
672 | 673 |
$output = $this->edit_execute_form($form_state); |
... | ... | |
681 | 682 |
* Main entry point to edit an item. |
682 | 683 |
*/ |
683 | 684 |
public function edit_page($js, $input, $item, $step = NULL) { |
685 |
$args = func_get_args(); |
|
684 | 686 |
drupal_set_title($this->get_page_title('edit', $item), PASS_THROUGH); |
685 | 687 |
|
686 | 688 |
// Check to see if there is a cached item to get if we're using the wizard. |
... | ... | |
702 | 704 |
'no_redirect' => TRUE, |
703 | 705 |
'step' => $step, |
704 | 706 |
// Store these in case additional args are needed. |
705 |
'function args' => func_get_args(),
|
|
707 |
'function args' => $args,
|
|
706 | 708 |
); |
707 | 709 |
|
708 | 710 |
$output = $this->edit_execute_form($form_state); |
... | ... | |
717 | 719 |
* Main entry point to clone an item. |
718 | 720 |
*/ |
719 | 721 |
public function clone_page($js, $input, $original, $step = NULL) { |
722 |
$args = func_get_args(); |
|
720 | 723 |
drupal_set_title($this->get_page_title('clone', $original), PASS_THROUGH); |
721 | 724 |
|
722 | 725 |
// If a step not set, they are trying to create a new clone. If a step |
... | ... | |
756 | 759 |
'no_redirect' => TRUE, |
757 | 760 |
'step' => $step, |
758 | 761 |
// Store these in case additional args are needed. |
759 |
'function args' => func_get_args(),
|
|
762 |
'function args' => $args,
|
|
760 | 763 |
); |
761 | 764 |
|
762 | 765 |
$output = $this->edit_execute_form($form_state); |
... | ... | |
1237 | 1240 |
* Page callback to import information for an exportable item. |
1238 | 1241 |
*/ |
1239 | 1242 |
public function import_page($js, $input, $step = NULL) { |
1243 |
$args = func_get_args(); |
|
1240 | 1244 |
drupal_set_title($this->get_page_title('import'), PASS_THROUGH); |
1241 | 1245 |
// Import is basically a multi step wizard form, so let's go ahead and |
1242 | 1246 |
// use CTools' wizard.inc for it. |
... | ... | |
1261 | 1265 |
'no_redirect' => TRUE, |
1262 | 1266 |
'step' => $step, |
1263 | 1267 |
// Store these in case additional args are needed. |
1264 |
'function args' => func_get_args(),
|
|
1268 |
'function args' => $args,
|
|
1265 | 1269 |
); |
1266 | 1270 |
|
1267 | 1271 |
// import always uses the wizard. |
Formats disponibles : Unified diff
Weekly update of contrib modules