summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--css/admin.css8
-rw-r--r--includes/admin.inc12
-rw-r--r--modules/user.views.inc6
3 files changed, 20 insertions, 6 deletions
diff --git a/css/admin.css b/css/admin.css
index 566a2dd..ebea408 100644
--- a/css/admin.css
+++ b/css/admin.css
@@ -212,6 +212,14 @@ div.views-display-deleted div.tab-section {
padding-top: 3px;
}
+#views-ajax-pad .views-messages {
+ background: transparent url('/themes/garland/images/gradient-inner.png') repeat-x top;
+ margin-left: 118px;
+ border: #ADB7BE 1px solid;
+ border-top: 0;
+ padding: 5px;
+}
+
.views-override {
padding: 0.5em 1em 0em 1em;
}
diff --git a/includes/admin.inc b/includes/admin.inc
index 9ff21f0..7f90d5b 100644
--- a/includes/admin.inc
+++ b/includes/admin.inc
@@ -74,11 +74,13 @@ function views_ui_list_views($arg = NULL) {
}
}
- if (strtolower($ts['sort']) == 'desc') {
- arsort($sorts);
- }
- else {
- asort($sorts);
+ if (!empty($ts)) {
+ if (strtolower($ts['sort']) == 'desc') {
+ arsort($sorts);
+ }
+ else {
+ asort($sorts);
+ }
}
$i = array();
diff --git a/modules/user.views.inc b/modules/user.views.inc
index 112a521..f3e5f33 100644
--- a/modules/user.views.inc
+++ b/modules/user.views.inc
@@ -55,7 +55,7 @@ function user_views_data() {
// Information for accepting a uid as an argument
'argument' => array(
'handler' => 'views_handler_argument_uid',
- ),
+ ),
// Information for accepting a uid as a filter
'filter' => array(
'handler' => 'views_handler_filter_equality',
@@ -89,6 +89,10 @@ class views_handler_field_user extends views_handler_field {
}
}
+ function options(&$item) {
+ $item->link_to_user = TRUE;
+ }
+
/**
* Provide link to node option
*/