$view = new view; $view->name = 'aktivitaet_freunde'; $view->description = 'Aktivität Freunde'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'activity'; $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('relationships', array( 'uid' => array( 'label' => 'Benutzer', 'required' => 0, 'id' => 'uid', 'table' => 'activity', 'field' => 'uid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'created' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'time ago', 'custom_date_format' => '', 'exclude' => 1, 'id' => 'created', 'table' => 'activity', 'field' => 'created', 'relationship' => 'none', 'override' => array( 'button' => 'Übersteuern', ), ), 'picture' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 1, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'relationship' => 'uid', 'override' => array( 'button' => 'Übersteuern', ), ), 'name' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[picture] [name]
[created]', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'uid', 'override' => array( 'button' => 'Übersteuern', ), ), 'message' => array( 'label' => 'Nachricht', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'message', 'table' => 'activity_messages', 'field' => 'message', 'override' => array( 'button' => 'Übersteuern', ), 'relationship' => 'none', ), 'delete_activity' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => '', 'exclude' => 0, 'id' => 'delete_activity', 'table' => 'activity', 'field' => 'delete_activity', 'override' => array( 'button' => 'Übersteuern', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'created' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'created', 'table' => 'activity', 'field' => 'created', 'override' => array( 'button' => 'Übersteuern', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'rtype' => array( 'operator' => 'in', 'value' => array( '0' => '1', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'rtype', 'table' => 'user_relationships', 'field' => 'rtype', 'relationship' => 'uid', ), 'uid_current' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'uid_current', 'table' => 'users', 'field' => 'uid_current', 'relationship' => 'uid', 'override' => array( 'button' => 'Übersteuern', ), ), 'approved' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'approved', 'table' => 'user_relationships', 'field' => 'approved', 'relationship' => 'uid', 'override' => array( 'button' => 'Übersteuern', ), ), 'rid' => array( 'operator' => 'or', 'value' => array( '7' => '7', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'uid', 'override' => array( 'button' => 'Übersteuern', ), 'reduce_duplicates' => 0, ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Das machen meine Freunde'); $handler->override_option('use_pager', '0'); $handler->override_option('use_more', 0); $handler->override_option('use_more_always', 0); $handler->override_option('use_more_text', 'Weiter'); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'picture' => 'picture', 'name' => 'name', 'message_1' => 'message_1', 'created' => 'created', ), 'info' => array( 'picture' => array( 'sortable' => 0, 'separator' => '', ), 'name' => array( 'sortable' => 0, 'separator' => '', ), 'message_1' => array( 'separator' => '', ), 'created' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler->override_option('row_options', array( 'inline' => array( 'picture' => 'picture', 'message_1' => 'message_1', ), 'separator' => '', 'hide_empty' => 0, )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'aktivität_freunde'); $handler->override_option('menu', array( 'type' => 'none', 'title' => 'FRRRRRRRRRRRR', 'description' => '', 'weight' => '0', 'name' => 'admin_menu', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));