name = 'uc_signup_user_admin_list'; $view->description = 'Administrative list of all users signed up for a given node.'; $view->tag = 'Signup'; $view->view_php = ''; $view->base_table = 'signup_log'; $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', 'Defaults', 'default'); $handler->override_option('relationships', array( 'nid' => array( 'label' => 'Signup node', 'required' => 1, 'id' => 'nid', 'table' => 'signup_log', 'field' => 'nid', 'relationship' => 'none', ), 'uid' => array( 'label' => 'Signup user', 'required' => 1, 'id' => 'uid', 'table' => 'signup_log', 'field' => 'uid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'name' => array( 'label' => 'Name', 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'uid', ), 'signup_time' => array( 'label' => 'Signup time', 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'signup_time', 'table' => 'signup_log', 'field' => 'signup_time', 'relationship' => 'none', ), 'attended' => array( 'label' => 'Attendance', 'exclude' => 0, 'id' => 'attended', 'table' => 'signup_log', 'field' => 'attended', 'relationship' => 'none', ), 'edit_link' => array( 'label' => 'Operations', 'text' => '', 'exclude' => 0, 'id' => 'edit_link', 'table' => 'signup_log', 'field' => 'edit_link', 'relationship' => 'none', ), 'oid' => array( 'label' => 'Order', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'oid', 'table' => 'uc_signup_log', 'field' => 'oid', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'nid', ), )); $handler->override_option('arguments', array( 'nid' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Signups for %1', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'signup_status', 'validate_fail' => 'not found', 'break_phrase' => 1, 'not' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'nid', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, '4' => 0, '3' => 0, '2' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_signup_status' => 'any', 'validate_argument_signup_node_access' => 1, 'validate_argument_php' => '', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, '6' => 0, '4' => 0, '5' => 0, ), 'validate_argument_node_type' => array( 'blog' => 0, 'audio' => 0, 'product' => 0, 'event' => 0, 'product_kit' => 0, 'article' => 0, 'page' => 0, 'video' => 0, ), 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'administer all signups', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 100); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'desc', 'columns' => array( 'name' => 'name', 'signup_time' => 'signup_time', 'form_data' => 'form_data', 'attended' => 'attended', 'edit_link' => 'edit_link', ), 'info' => array( 'name' => array( 'sortable' => 1, 'separator' => '', ), 'signup_time' => array( 'sortable' => 1, 'separator' => '', ), 'form_data' => array( 'separator' => '', ), 'attended' => array( 'sortable' => 1, 'separator' => '', ), 'edit_link' => array( 'separator' => '', ), ), 'default' => 'signup_time', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'uc_signup/attendees'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $views[$view->name] = $view; return $views; }