summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Corbin2013-04-10 12:24:32 (GMT)
committer Sebastien Corbin2013-04-10 12:24:32 (GMT)
commitda058c05241fe6af3fec36c9231be7e1604560c4 (patch)
tree3b8a4a6efbde8d31c3023aa9a59db44cb542fb2e
parentb26c69d5cd8761bc98f2f95c16f38b8bd452bba4 (diff)
Issue #1442928 by rudiedirkx, SebCorbin: Fixed Add submit buttons to form['actions'].7.x-2.x
-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 ccb68df..7efa512 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->qid/view/" . $queue->subqueue->sqid);
+ $operations['view'] = l(t('View'), "admin/structure/nodequeue/$queue->qid/view/" . $queue->subqueue->sqid);
}
else {
- $operations[] = l(t('View'), "admin/structure/nodequeue/$queue->qid/view");
+ $operations['view'] = l(t('View'), "admin/structure/nodequeue/$queue->qid/view");
}
if (user_access('administer nodequeue')) {
- $operations[] = l(t('Edit'), "admin/structure/nodequeue/$queue->qid/edit");
- $operations[] = l(t('Delete'), "admin/structure/nodequeue/$queue->qid/delete");
+ $operations['edit'] = l(t('Edit'), "admin/structure/nodequeue/$queue->qid/edit");
+ $operations['delete'] = l(t('Delete'), "admin/structure/nodequeue/$queue->qid/delete");
}
$rows[] = array(
@@ -545,7 +545,7 @@ function nodequeue_edit_queue_form($form, &$form_state, $queue) {
);
if (isset($queue->qid)) {
- $form[] = array(
+ $form['delete'] = array(
'#type' => 'submit',
'#value' => t('Delete'),
'#validate' => array('nodequeue_edit_queue_form_delete_validate'),