Skip to content
Snippets Groups Projects
Commit 519f86ee authored by Sam Boyer's avatar Sam Boyer
Browse files

A few more small changes and upates.

parent 567bb36c
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ $view->disabled = FALSE; /* Edit this to true to make a default view disabled in
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
'vid' => array(
'label' => 'node revision',
'label' => 'quiz revision',
'required' => 1,
'id' => 'vid',
'table' => 'quiz_node_results',
......@@ -94,11 +94,6 @@ $handler->override_option('fields', array(
'field' => 'score',
'relationship' => 'none',
),
'result_id' => array(
'id' => 'result_id',
'table' => 'quiz_node_results',
'field' => 'result_id',
),
'time_start' => array(
'label' => 'Quiz Start Time.',
'alter' => array(
......@@ -149,6 +144,30 @@ $handler->override_option('fields', array(
'field' => 'time_end',
'relationship' => 'none',
),
'quiz_state' => array(
'label' => 'Quiz State',
'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,
),
'exclude' => 0,
'id' => 'quiz_state',
'table' => 'quiz_node_results',
'field' => 'quiz_state',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'uid' => array(
......@@ -164,6 +183,7 @@ $handler->override_option('arguments', array(
'validate_fail' => 'not found',
'break_phrase' => 0,
'not' => 0,
'allow_null' => 1,
'id' => 'uid',
'table' => 'quiz_node_results',
'field' => 'uid',
......@@ -173,21 +193,33 @@ $handler->override_option('arguments', array(
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'long_answer' => 0,
'multichoice' => 0,
'quiz' => 0,
'long_answer' => 0,
'true_false' => 0,
'page' => 0,
'story' => 0,
'wanky_group' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(),
'validate_argument_vocabulary' => array(
'1' => 0,
'2' => 0,
'3' => 0,
),
'validate_argument_type' => 'tid',
'user_argument_type' => '',
'restrict_user_roles' => 0,
'user_roles' => array(),
'validate_argument_php' => '',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
),
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_is_member' => 0,
),
));
$handler->override_option('filters', array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment