function _spaces_dashboard_views_group_my in Spaces 5
Same name and namespace in other branches
- 5.2 spaces_dashboard/spaces_dashboard.module \_spaces_dashboard_views_group_my()
1 string reference to '_spaces_dashboard_views_group_my'
- spaces_dashboard_views_default_views in spaces_dashboard/
spaces_dashboard.module - Implementation of hook_default_views
File
- spaces_dashboard/
spaces_dashboard.module, line 486
Code
function _spaces_dashboard_views_group_my() {
$view = new stdClass();
$view->name = 'spaces_group_my';
$view->description = '';
$view->access = array();
$view->view_args_php = '';
$view->page = FALSE;
$view->block = TRUE;
$view->block_title = 'My Groups';
$view->block_empty = '<p>' . t('No groups found') . '</p>';
$view->block_empty_format = '2';
$view->block_type = 'spaces_datetitle';
$view->nodes_per_block = '99';
$view->sort = array(
array(
'tablename' => 'node',
'field' => 'title',
'sortorder' => 'ASC',
'options' => '',
),
);
$view->argument = array();
$view->field = array(
array(
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => '_spaces_dashboard_views_handler_field_nodelink',
'options' => 'link',
),
array(
'tablename' => 'og',
'field' => 'private',
'label' => '',
),
);
$view->filter = array(
array(
'tablename' => 'og_uid',
'field' => 'currentuidsimple',
'operator' => '=',
'options' => '',
'value' => '***CURRENT_USER***',
),
);
$view->exposed_filter = array();
$view->requires = array(
node,
og_uid,
);
return $view;
}