$view = new view;
$view->name = 'user_attachments';
$view->description = 'Prikaz korisnikovih attachmenta';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE;
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
'id' => 'upload_fid',
'table' => 'node',
'field' => 'upload_fid',
),
'label' => 'korisnik',
'required' => 0,
'id' => 'uid',
'table' => 'node_revisions',
'field' => 'uid',
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'label' => 'File ID',
'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' => 1,
'empty_zero' => 0,
'link_to_file' => 0,
'exclude' => 0,
'id' => 'fid',
'table' => 'files',
'field' => 'fid',
'relationship' => 'upload_fid',
),
'label' => 'Naziv',
'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,
'link_to_file' => 0,
'exclude' => 0,
'id' => 'filename',
'table' => 'files',
'field' => 'filename',
'relationship' => 'upload_fid',
),
'id' => 'filepath',
'table' => 'files',
'field' => 'filepath',
'relationship' => 'upload_fid',
),
'id' => 'filesize',
'table' => 'files',
'field' => 'filesize',
),
'label' => 'Upload date',
'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,
'date_format' => 'small',
'custom_date_format' => '',
'exclude' => 0,
'id' => 'timestamp',
'table' => 'files',
'field' => 'timestamp',
'relationship' => 'upload_fid',
),
));
$handler->override_option('filters', array(
'operator' => 'not empty',
'value' => '',
'min' => '',
'max' => '',
),
'group' => '0',
'exposed' => FALSE,
'operator' => FALSE,
'label' => '',
),
'id' => 'fid',
'table' => 'files',
'field' => 'fid',
'relationship' => 'upload_fid',
),
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'operator' => FALSE,
'label' => '',
),
'id' => 'uid_current',
'table' => 'users',
'field' => 'uid_current',
'relationship' => 'uid',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('use_pager', '0');
$handler->override_option('distinct', 1);
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
'grouping' => '',
'override' => 1,
'sticky' => 0,
'order' => 'asc',
'fid' => 'fid',
'filename' => 'filename',
'filepath' => 'filepath',
),
'sortable' => 0,
'separator' => '',
),
'sortable' => 0,
'separator' => '',
),
'sortable' => 0,
'separator' => '',
),
),
'default' => '-1',
));
$handler = $view->new_display('page', 'Stranica', 'page_1');
$handler->override_option('path', 'user/%/attachmenti');
$handler->override_option('menu', array(
'type' => 'tab',
'title' => 'Attachmenti',
'description' => '',
'weight' => '0',
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));