diff --git a/css/admin.css b/css/admin.css index 566a2ddb7ebae4e8565d6785d49fc966a37ec898..ebea408b3cafe774820b4e1c043a02df96533adf 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 9ff21f061cb2d8dc19351eed42dfca5c39f9d68d..7f90d5b97667f07c3a973212f492a4d28262f8bc 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 112a5212df245086ce5907556eeb5e05cf93c891..f3e5f338b88c03a8be39c1aa69a55aa56d2bc18d 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 */