summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Beach2011-03-01 21:52:47 (GMT)
committer Jesse Beach2011-03-01 21:52:47 (GMT)
commit369ccdbd8002a03f5dfea2b0158d7f78503e482a (patch)
tree165ccd21a5492a07030ce4b82af9265cbbff2de5
parent6a12c62301d7e2c114453ad76bf040dcb1103029 (diff)
Moved the "add" action for display setting buckets so that it is always the default action.
-rw-r--r--includes/admin.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/admin.inc b/includes/admin.inc
index dd80483..ed62755 100644
--- a/includes/admin.inc
+++ b/includes/admin.inc
@@ -1974,6 +1974,12 @@ function views_ui_edit_form_get_bucket($type, $view, $display) {
// Create an array of actions to pass to theme_links
$actions = array();
$count_handlers = count($display->handler->get_handlers($type));
+ $actions['add'] = array(
+ 'title' => t('Add'),
+ 'href' => "admin/structure/views/nojs/add-item/$view->name/$display->id/$type",
+ 'attributes'=> array('class' => array('icon compact add', 'views-ajax-link'), 'title' => t('Add'), 'id' => 'views-add-' . $type),
+ 'html' => TRUE,
+ );
if ($count_handlers > 1) {
$actions['rearrange'] = array(
'title' => $rearrange_text,
@@ -1982,12 +1988,6 @@ function views_ui_edit_form_get_bucket($type, $view, $display) {
'html' => TRUE,
);
}
- $actions['add'] = array(
- 'title' => t('Add'),
- 'href' => "admin/structure/views/nojs/add-item/$view->name/$display->id/$type",
- 'attributes'=> array('class' => array('icon compact add', 'views-ajax-link'), 'title' => t('Add'), 'id' => 'views-add-' . $type),
- 'html' => TRUE,
- );
if ($count_handlers > 0) {
$actions['delete'] = array(
'title' => t('Delete'),