|
@@ -644,6 +644,7 @@ class ctools_export_ui {
|
|
}
|
|
}
|
|
|
|
|
|
public function add_page($js, $input, $step = NULL) {
|
|
public function add_page($js, $input, $step = NULL) {
|
|
|
|
+ $args = func_get_args();
|
|
drupal_set_title($this->get_page_title('add'), PASS_THROUGH);
|
|
drupal_set_title($this->get_page_title('add'), PASS_THROUGH);
|
|
|
|
|
|
// If a step not set, they are trying to create a new item. If a step
|
|
// If a step not set, they are trying to create a new item. If a step
|
|
@@ -666,7 +667,7 @@ class ctools_export_ui {
|
|
'no_redirect' => TRUE,
|
|
'no_redirect' => TRUE,
|
|
'step' => $step,
|
|
'step' => $step,
|
|
// Store these in case additional args are needed.
|
|
// Store these in case additional args are needed.
|
|
- 'function args' => func_get_args(),
|
|
|
|
|
|
+ 'function args' => $args,
|
|
);
|
|
);
|
|
|
|
|
|
$output = $this->edit_execute_form($form_state);
|
|
$output = $this->edit_execute_form($form_state);
|
|
@@ -681,6 +682,7 @@ class ctools_export_ui {
|
|
* Main entry point to edit an item.
|
|
* Main entry point to edit an item.
|
|
*/
|
|
*/
|
|
public function edit_page($js, $input, $item, $step = NULL) {
|
|
public function edit_page($js, $input, $item, $step = NULL) {
|
|
|
|
+ $args = func_get_args();
|
|
drupal_set_title($this->get_page_title('edit', $item), PASS_THROUGH);
|
|
drupal_set_title($this->get_page_title('edit', $item), PASS_THROUGH);
|
|
|
|
|
|
// Check to see if there is a cached item to get if we're using the wizard.
|
|
// Check to see if there is a cached item to get if we're using the wizard.
|
|
@@ -702,7 +704,7 @@ class ctools_export_ui {
|
|
'no_redirect' => TRUE,
|
|
'no_redirect' => TRUE,
|
|
'step' => $step,
|
|
'step' => $step,
|
|
// Store these in case additional args are needed.
|
|
// Store these in case additional args are needed.
|
|
- 'function args' => func_get_args(),
|
|
|
|
|
|
+ 'function args' => $args,
|
|
);
|
|
);
|
|
|
|
|
|
$output = $this->edit_execute_form($form_state);
|
|
$output = $this->edit_execute_form($form_state);
|
|
@@ -717,6 +719,7 @@ class ctools_export_ui {
|
|
* Main entry point to clone an item.
|
|
* Main entry point to clone an item.
|
|
*/
|
|
*/
|
|
public function clone_page($js, $input, $original, $step = NULL) {
|
|
public function clone_page($js, $input, $original, $step = NULL) {
|
|
|
|
+ $args = func_get_args();
|
|
drupal_set_title($this->get_page_title('clone', $original), PASS_THROUGH);
|
|
drupal_set_title($this->get_page_title('clone', $original), PASS_THROUGH);
|
|
|
|
|
|
// If a step not set, they are trying to create a new clone. If a step
|
|
// If a step not set, they are trying to create a new clone. If a step
|
|
@@ -756,7 +759,7 @@ class ctools_export_ui {
|
|
'no_redirect' => TRUE,
|
|
'no_redirect' => TRUE,
|
|
'step' => $step,
|
|
'step' => $step,
|
|
// Store these in case additional args are needed.
|
|
// Store these in case additional args are needed.
|
|
- 'function args' => func_get_args(),
|
|
|
|
|
|
+ 'function args' => $args,
|
|
);
|
|
);
|
|
|
|
|
|
$output = $this->edit_execute_form($form_state);
|
|
$output = $this->edit_execute_form($form_state);
|
|
@@ -1237,6 +1240,7 @@ class ctools_export_ui {
|
|
* Page callback to import information for an exportable item.
|
|
* Page callback to import information for an exportable item.
|
|
*/
|
|
*/
|
|
public function import_page($js, $input, $step = NULL) {
|
|
public function import_page($js, $input, $step = NULL) {
|
|
|
|
+ $args = func_get_args();
|
|
drupal_set_title($this->get_page_title('import'), PASS_THROUGH);
|
|
drupal_set_title($this->get_page_title('import'), PASS_THROUGH);
|
|
// Import is basically a multi step wizard form, so let's go ahead and
|
|
// Import is basically a multi step wizard form, so let's go ahead and
|
|
// use CTools' wizard.inc for it.
|
|
// use CTools' wizard.inc for it.
|
|
@@ -1261,7 +1265,7 @@ class ctools_export_ui {
|
|
'no_redirect' => TRUE,
|
|
'no_redirect' => TRUE,
|
|
'step' => $step,
|
|
'step' => $step,
|
|
// Store these in case additional args are needed.
|
|
// Store these in case additional args are needed.
|
|
- 'function args' => func_get_args(),
|
|
|
|
|
|
+ 'function args' => $args,
|
|
);
|
|
);
|
|
|
|
|
|
// import always uses the wizard.
|
|
// import always uses the wizard.
|