function kaltura_views_views_default_views in Kaltura 5
Same name and namespace in other branches
- 7.3 plugins/kaltura_views/kaltura_views.views_default.inc \kaltura_views_views_default_views()
- 7.2 plugins/kaltura_views/kaltura_views.views_default.inc \kaltura_views_views_default_views()
File
- plugins/
kaltura_views/ kaltura_views.module, line 258
Code
function kaltura_views_views_default_views() {
$view = new stdClass();
$view->name = 'kaltura_most_popular_audio';
$view->description = 'Displays a list of the audio entries that were most listened to. Each name is a link to the audio node page. ';
$view->access = array();
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Most Popular Audio';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = 'You did not create any Kaltura items';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'kaltura/most/popular-audio ';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_plays',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array();
$view->field = array(
array(
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
);
$view->filter = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_media_type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => '5',
),
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_video_comment',
'operator' => '=',
'options' => '',
'value' => '0',
),
array(
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
);
$view->exposed_filter = array();
$view->requires = array(
node_kaltura,
node,
);
$views[$view->name] = $view;
$view = new stdClass();
$view->name = 'kaltura_most_popular_videos';
$view->description = 'Displays the thumbnails of the videos that were most played. Placing the mouse over the thumbnail will create a quick preview of remixes and collaborative videos. Clicking the thumbnail will lead to the video node page where the video can be viewed.';
$view->access = array();
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Most Popular Videos ';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = 'You did not create any Kaltura items';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'kaltura/most/popular-videos ';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_plays',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array();
$view->field = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_thumbnail_url',
'label' => '',
'options' => '120x90',
),
array(
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_entryId',
'label' => '',
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_plays',
'label' => '',
),
);
$view->filter = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_media_type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => '1',
1 => '6',
),
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_video_comment',
'operator' => '=',
'options' => '',
'value' => '0',
),
array(
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
);
$view->exposed_filter = array();
$view->requires = array(
node_kaltura,
node,
);
$views[$view->name] = $view;
$view = new stdClass();
$view->name = 'kaltura_my_media';
$view->description = 'logged-in user\'s media';
$view->access = array();
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'My Kaltura Items ';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = 'You did not create any Kaltura items';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'kaltura/my_items ';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array();
$view->argument = array();
$view->field = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_thumbnail_url',
'label' => '',
'options' => '120X90',
),
array(
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_entryId',
'label' => '',
),
);
$view->filter = array(
array(
'tablename' => 'node',
'field' => 'currentuid',
'operator' => '=',
'options' => '',
'value' => '***CURRENT_USER***',
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_media_type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => '1',
1 => '2',
2 => '5',
3 => '6',
),
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_video_comment',
'operator' => '=',
'options' => '',
'value' => '0',
),
);
$view->exposed_filter = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_media_type',
'label' => '',
'optional' => '1',
'is_default' => '0',
'operator' => '0',
'single' => '0',
),
);
$view->requires = array(
node,
node_kaltura,
);
$views[$view->name] = $view;
$view = new stdClass();
$view->name = 'kaltura_recently_added_photos';
$view->description = 'kaltura recently added photos ';
$view->access = array();
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Most Recently Uploaded Photos ';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'kaltura/recently/photos';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->block = TRUE;
$view->block_title = 'Most Recently Uploaded Photos ';
$view->block_header = '';
$view->block_header_format = '1';
$view->block_footer = '';
$view->block_footer_format = '1';
$view->block_empty = '';
$view->block_empty_format = '1';
$view->block_type = 'list';
$view->nodes_per_block = '10';
$view->block_more = TRUE;
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array(
array(
'tablename' => 'node',
'field' => 'changed',
'sortorder' => 'DESC',
'options' => 'normal',
),
array(
'tablename' => 'node',
'field' => 'sticky',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array();
$view->field = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_thumbnail_url',
'label' => '',
'options' => '120x90',
),
array(
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array(
'tablename' => 'users',
'field' => 'name',
'label' => '',
),
);
$view->filter = array(
array(
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => 'kaltura_entry',
1 => 'kaltura_mix',
),
),
array(
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_media_type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => '2',
),
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_video_comment',
'operator' => '=',
'options' => '',
'value' => '0',
),
);
$view->exposed_filter = array();
$view->requires = array(
node,
node_kaltura,
users,
);
$views[$view->name] = $view;
$view = new stdClass();
$view->name = 'kaltura_recently_added_videos';
$view->description = 'kaltura recently added videos';
$view->access = array();
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Most Recently Uploaded Videos';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'kaltura/recently/videos';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->block = TRUE;
$view->block_title = 'Most Recently Uploaded Videos';
$view->block_header = '';
$view->block_header_format = '1';
$view->block_footer = '';
$view->block_footer_format = '1';
$view->block_empty = '';
$view->block_empty_format = '1';
$view->block_type = 'list';
$view->nodes_per_block = '10';
$view->block_more = TRUE;
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array(
array(
'tablename' => 'node',
'field' => 'changed',
'sortorder' => 'DESC',
'options' => 'normal',
),
array(
'tablename' => 'node',
'field' => 'sticky',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array();
$view->field = array(
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_thumbnail_url',
'label' => '',
'options' => '120x90',
),
array(
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array(
'tablename' => 'users',
'field' => 'name',
'label' => '',
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_entryId',
'label' => '',
),
);
$view->filter = array(
array(
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => 'kaltura_entry',
1 => 'kaltura_mix',
),
),
array(
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_media_type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => '1',
1 => '6',
),
),
array(
'tablename' => 'node_kaltura',
'field' => 'kaltura_video_comment',
'operator' => '=',
'options' => '',
'value' => '0',
),
);
$view->exposed_filter = array();
$view->requires = array(
node,
node_kaltura,
users,
);
$views[$view->name] = $view;
return $views;
}