fb_autopost_entity.views.inc in Facebook Autopost 7
Views include file.
File
fb_autopost_entity/fb_autopost_entity.views.incView source
<?php
/**
* @file
* Views include file.
*/
/**
* Implements hook_views_default_views().
*/
function fb_autopost_entity_views_default_views() {
$view = new view();
$view->name = 'facebook_publications';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'facebook_publication';
$view->human_name = 'Facebook Publications';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view
->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Facebook Publications';
$handler->display->display_options['hide_admin_links'] = TRUE;
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'administer facebook publications';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'fbpid' => 'fbpid',
'label' => 'label',
'name' => 'name',
'changed' => 'changed',
'url' => 'url',
'facebook_id' => 'facebook_id',
);
$handler->display->display_options['style_options']['default'] = 'changed';
$handler->display->display_options['style_options']['info'] = array(
'fbpid' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'label' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'name' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'changed' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'url' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'facebook_id' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['label'] = 'Header description';
$handler->display->display_options['header']['area']['empty'] = TRUE;
$handler->display->display_options['header']['area']['content'] = 'Display information about all registered <em>Facebook publications</em>. This is the best place to look for additional information for your <em>Facebook Publications</em>.';
$handler->display->display_options['header']['area']['format'] = 'filtered_html';
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
$handler->display->display_options['empty']['area']['label'] = 'Empty text';
$handler->display->display_options['empty']['area']['empty'] = TRUE;
$handler->display->display_options['empty']['area']['content'] = 'There are no publications to show. To create new publications use the developer\'s API in a custom module or create publications based on the <a href="http://drupal.org/project/rules">Rules</a> module. If you are not sure how to do any of those things please refer to the documentation or create a support request in the <a href="http://drupal.org/project/issues/fb_autopost">issue queue</a>.';
$handler->display->display_options['empty']['area']['format'] = 'filtered_html';
/* Relationship: Facebook publication: User uid */
$handler->display->display_options['relationships']['user']['id'] = 'user';
$handler->display->display_options['relationships']['user']['table'] = 'facebook_publication';
$handler->display->display_options['relationships']['user']['field'] = 'user';
/* Field: Facebook publication: Facebook publication ID */
$handler->display->display_options['fields']['fbpid']['id'] = 'fbpid';
$handler->display->display_options['fields']['fbpid']['table'] = 'facebook_publication';
$handler->display->display_options['fields']['fbpid']['field'] = 'fbpid';
/* Field: Facebook publication: Label */
$handler->display->display_options['fields']['label']['id'] = 'label';
$handler->display->display_options['fields']['label']['table'] = 'facebook_publication';
$handler->display->display_options['fields']['label']['field'] = 'label';
/* Field: User: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'users';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['relationship'] = 'user';
$handler->display->display_options['fields']['name']['label'] = 'User';
/* Field: Facebook publication: Date changed */
$handler->display->display_options['fields']['changed']['id'] = 'changed';
$handler->display->display_options['fields']['changed']['table'] = 'facebook_publication';
$handler->display->display_options['fields']['changed']['field'] = 'changed';
$handler->display->display_options['fields']['changed']['date_format'] = 'short';
/* Field: Facebook publication: URL */
$handler->display->display_options['fields']['url']['id'] = 'url';
$handler->display->display_options['fields']['url']['table'] = 'views_entity_facebook_publication';
$handler->display->display_options['fields']['url']['field'] = 'url';
$handler->display->display_options['fields']['url']['link_to_entity'] = 0;
/* Field: Facebook publication: Facebook publication remote ID */
$handler->display->display_options['fields']['facebook_id']['id'] = 'facebook_id';
$handler->display->display_options['fields']['facebook_id']['table'] = 'facebook_publication';
$handler->display->display_options['fields']['facebook_id']['field'] = 'facebook_id';
$handler->display->display_options['fields']['facebook_id']['label'] = 'Remote ID';
/* Filter criterion: Facebook publication: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'facebook_publication';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['exposed'] = TRUE;
$handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
$handler->display->display_options['filters']['type']['expose']['label'] = 'Publication type';
$handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
$handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
$handler->display->display_options['filters']['type']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Display: Page */
$handler = $view
->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'admin/config/services/fbautopost/list';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'List';
$handler->display->display_options['menu']['weight'] = '2';
$handler->display->display_options['menu']['name'] = 'management';
$handler->display->display_options['menu']['context'] = 0;
// Add view to list of views to provide.
$views[$view->name] = $view;
// At the end, return array of default views.
return $views;
}
Functions
Name | Description |
---|---|
fb_autopost_entity_views_default_views | Implements hook_views_default_views(). |