summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Perry2016-02-19 01:20:22 (GMT)
committerJakob Perry2016-02-19 01:20:22 (GMT)
commit9c27c89ee9d7447010abea419b60315c72ba4cf6 (patch)
tree04f51df5d2e7b70bae1d88c25af67af736ff0ed2
parentd26f9f5bea1e6384ce90d47c044fdcf865c4d289 (diff)
Issue #1994046 by japerry, grisendo, joelpittet: Panels node translation
-rw-r--r--panels_node/panels_node.module8
1 files changed, 3 insertions, 5 deletions
diff --git a/panels_node/panels_node.module b/panels_node/panels_node.module
index 894dc67..655932f 100644
--- a/panels_node/panels_node.module
+++ b/panels_node/panels_node.module
@@ -113,7 +113,7 @@ function panels_node_add() {
ctools_include('common', 'panels');
$layouts = panels_common_get_allowed_layouts('panels_node');
- return panels_common_print_layout_links($layouts, 'node/add/panel', array('query' => $_GET));
+ return panels_common_print_layout_links($layouts, 'node/add/panel', array('query' => drupal_get_query_parameters()));
}
// ---------------------------------------------------------------------------
@@ -183,14 +183,12 @@ function panels_node_hook_form(&$node, &$form_state) {
// and if that doesn't work present them with a list to pick from.
$panel_layout = isset($node->panel_layout) ? $node->panel_layout : arg(3);
if (empty($panel_layout)) {
- $opts = $_GET;
- unset($opts['q']);
- return drupal_goto('node/add/panel/choose-layout', $opts);
+ drupal_goto('node/add/panel/choose-layout', array('query' => drupal_get_query_parameters()));
}
$layout = panels_get_layout($panel_layout);
if (empty($layout)) {
- return drupal_not_found();
+ return MENU_NOT_FOUND;
}
$form['panels_node']['layout'] = array(
'#type' => 'value',