summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Corbin2013-04-09 13:42:44 (GMT)
committer Sebastien Corbin2013-04-09 13:45:47 (GMT)
commit64e910e51f3a95d2c2cc848a2b2c86e3a7ce8c8a (patch)
tree5064dd03da856a80df318f7e8a230eca405dcd72
parent70d99140be211be8884ac839db0ba05fdcf48875 (diff)
Issue #1442928 by rudiedirkx: Fixed missing form key for submit button and operations.
-rw-r--r--includes/nodequeue.admin.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/nodequeue.admin.inc b/includes/nodequeue.admin.inc
index fa89b25..8f80537 100644
--- a/includes/nodequeue.admin.inc
+++ b/includes/nodequeue.admin.inc
@@ -297,15 +297,15 @@ function nodequeue_view_queues() {
// If this queue has only one subqueue.
if ($sub_text == 1) {
$sub_text .= " (" . nodequeue_subqueue_size_text($queue->size, $queue->subqueue->count) . ")";
- $operations[] = l(t('View'), "admin/structure/nodequeue/$queue->name/view/" . $queue->subqueue->sqid);
+ $operations['view'] = l(t('View'), "admin/structure/nodequeue/$queue->name/view/" . $queue->subqueue->sqid);
}
else {
- $operations[] = l(t('View'), "admin/structure/nodequeue/$queue->name/view");
+ $operations['view'] = l(t('View'), "admin/structure/nodequeue/$queue->name/view");
}
if (user_access('administer nodequeue')) {
- $operations[] = l(t('Edit'), "admin/structure/nodequeue/$queue->name/edit");
- $operations[] = l(t('Delete'), "admin/structure/nodequeue/$queue->name/delete");
+ $operations['edit'] = l(t('Edit'), "admin/structure/nodequeue/$queue->name/edit");
+ $operations['delete'] = l(t('Delete'), "admin/structure/nodequeue/$queue->name/delete");
}
$rows[] = array(
@@ -553,7 +553,7 @@ function nodequeue_edit_queue_form($form, &$form_state, $queue) {
// Queue_names change empty($queue->name) for proper check if existing queue.
if (!$queue->new) {
- $form[] = array(
+ $form['delete'] = array(
'#type' => 'submit',
'#value' => t('Delete'),
'#validate' => array('nodequeue_edit_queue_form_delete_validate'),