$view = new view; $view->name = 'benutzer_mod'; $view->description = 'Benutzerliste für Moderatoren'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'users'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Standards', 'default'); $handler->override_option('fields', array( 'name' => array( 'label' => 'Benutzer', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'mail' => array( 'label' => 'E-Mail-Adresse', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 'mailto', 'exclude' => 0, 'id' => 'mail', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), 'status' => array( 'label' => 'Aktiv', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'status', 'table' => 'users', 'field' => 'status', 'relationship' => 'none', ), 'ip_address' => array( 'label' => 'IP', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => 'http://www.dnsstuff.com/tools/whois.ch?ip=[ip_address]&src=ShowIP', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'ip_address', 'table' => 'user_stats_ips', 'field' => 'ip_address', 'relationship' => 'none', ), 'created' => array( 'label' => 'Mitglied seit', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'date_format' => 'custom', 'custom_date_format' => 'd.m.Y H:i:s', 'exclude' => 0, 'id' => 'created', 'table' => 'users', 'field' => 'created', 'relationship' => 'none', ), 'access' => array( 'label' => 'Letzter Zugriff', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'date_format' => 'custom', 'custom_date_format' => 'd.m.Y H:i:s', 'exclude' => 0, 'id' => 'access', 'table' => 'users', 'field' => 'access', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'access' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'access', 'table' => 'users', 'field' => 'access', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'mail_1' => array( 'operator' => '!=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 1, 'id' => 'mail_1', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), 'mail' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'mail_op', 'identifier' => 'mail', 'label' => 'E-Mail-Adresse', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'mail', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('title', 'Benutzerliste'); $handler->override_option('footer_format', '1'); $handler->override_option('footer_empty', 0); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', 'mini'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'desc', 'columns' => array( 'name' => 'name', 'mail' => 'mail', 'status' => 'status', 'ip_address' => 'ip_address', 'created' => 'created', 'access' => 'access', ), 'info' => array( 'name' => array( 'sortable' => 1, 'separator' => '', ), 'mail' => array( 'sortable' => 1, 'separator' => '', ), 'status' => array( 'sortable' => 1, 'separator' => '', ), 'ip_address' => array( 'separator' => '', ), 'created' => array( 'sortable' => 1, 'separator' => '', ), 'access' => array( 'sortable' => 1, 'separator' => '', ), ), 'default' => 'access', )); $handler = $view->new_display('page', 'Seite', 'page_1'); $handler->override_option('path', 'moderatoren/benutzer'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Benutzerliste', 'description' => '', 'weight' => '0', 'name' => 'menu-moderatoren', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('footer', '[ Ganze Benutzerliste ]'); $handler->override_option('items_per_page', 10); $handler->override_option('use_pager', FALSE); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'desc', 'columns' => array( 'name' => 'name', 'mail' => 'mail', 'status' => 'status', 'ip_address' => 'ip_address', 'created' => 'created', 'access' => 'access', ), 'info' => array( 'name' => array( 'sortable' => 0, 'separator' => '', ), 'mail' => array( 'sortable' => 0, 'separator' => '', ), 'status' => array( 'sortable' => 0, 'separator' => '', ), 'ip_address' => array( 'separator' => '', ), 'created' => array( 'sortable' => 0, 'separator' => '', ), 'access' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);