Skip to content

Commit

Permalink
Feature re-exported for flagging table names
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpittet committed Jun 3, 2016
1 parent 5feb3d5 commit aa570f0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 48 deletions.
1 change: 0 additions & 1 deletion message_subscribe.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name = Message subscribe
description = Subscribe API for the Message and Message notify modules.
core = 7.x
package = Message
php = 5.2.4
project = message_subscribe
dependencies[] = ctools
dependencies[] = flag
Expand Down
4 changes: 2 additions & 2 deletions message_subscribe_ui/message_subscribe_ui.features.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
/**
* Implements hook_views_api().
*/
function message_subscribe_ui_views_api() {
return array("version" => "3.0");
function message_subscribe_ui_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
4 changes: 1 addition & 3 deletions message_subscribe_ui/message_subscribe_ui.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name = Message subscribe UI
description = Message subscribe UI
core = 7.x
package = Message
php = 5.2.4
version = 7.x-1.0
project = message_subscribe
dependencies[] = message_subscribe
dependencies[] = views
dependencies[] = views_content
features[ctools][] = views:views_default:3.0
features[features_api][] = api:1
features[features_api][] = api:2
features[views_view][] = subscribe_node
features[views_view][] = subscribe_taxonomy_term
features[views_view][] = subscribe_user
48 changes: 6 additions & 42 deletions message_subscribe_ui/message_subscribe_ui.views_default.inc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function message_subscribe_ui_views_default_views() {
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Flags: Flag link */
$handler->display->display_options['fields']['ops']['id'] = 'ops';
$handler->display->display_options['fields']['ops']['table'] = 'flag_content';
$handler->display->display_options['fields']['ops']['table'] = 'flagging';
$handler->display->display_options['fields']['ops']['field'] = 'ops';
$handler->display->display_options['fields']['ops']['relationship'] = 'flag_content_rel';
$handler->display->display_options['fields']['ops']['label'] = '';
Expand All @@ -83,7 +83,7 @@ function message_subscribe_ui_views_default_views() {
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Contextual filter: Flags: User uid */
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
$handler->display->display_options['arguments']['uid']['table'] = 'flag_content';
$handler->display->display_options['arguments']['uid']['table'] = 'flagging';
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
$handler->display->display_options['arguments']['uid']['relationship'] = 'flag_content_rel';
$handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
Expand All @@ -98,18 +98,6 @@ function message_subscribe_ui_views_default_views() {
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
$translatables['subscribe_node'] = array(
t('Master'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('You are not subscribed to any item.'),
t('flag'),
t('All'),
);
$export['subscribe_node'] = $view;

$view = new view();
Expand Down Expand Up @@ -168,33 +156,21 @@ function message_subscribe_ui_views_default_views() {
$handler->display->display_options['fields']['name']['link_to_taxonomy'] = TRUE;
/* Field: Flags: Flag link */
$handler->display->display_options['fields']['ops']['id'] = 'ops';
$handler->display->display_options['fields']['ops']['table'] = 'flag_content';
$handler->display->display_options['fields']['ops']['table'] = 'flagging';
$handler->display->display_options['fields']['ops']['field'] = 'ops';
$handler->display->display_options['fields']['ops']['relationship'] = 'flag_content_rel';
$handler->display->display_options['fields']['ops']['label'] = '';
$handler->display->display_options['fields']['ops']['element_label_colon'] = FALSE;
/* Contextual filter: Flags: User uid */
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
$handler->display->display_options['arguments']['uid']['table'] = 'flag_content';
$handler->display->display_options['arguments']['uid']['table'] = 'flagging';
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
$handler->display->display_options['arguments']['uid']['relationship'] = 'flag_content_rel';
$handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
$handler->display->display_options['arguments']['uid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
$translatables['subscribe_taxonomy_term'] = array(
t('Master'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('You are not subscribed to any item.'),
t('flag'),
t('All'),
);
$export['subscribe_taxonomy_term'] = $view;

$view = new view();
Expand Down Expand Up @@ -253,7 +229,7 @@ function message_subscribe_ui_views_default_views() {
$handler->display->display_options['fields']['name']['alter']['ellipsis'] = FALSE;
/* Field: Flags: Flag link */
$handler->display->display_options['fields']['ops']['id'] = 'ops';
$handler->display->display_options['fields']['ops']['table'] = 'flag_content';
$handler->display->display_options['fields']['ops']['table'] = 'flagging';
$handler->display->display_options['fields']['ops']['field'] = 'ops';
$handler->display->display_options['fields']['ops']['relationship'] = 'flag_content_rel';
$handler->display->display_options['fields']['ops']['label'] = '';
Expand All @@ -265,7 +241,7 @@ function message_subscribe_ui_views_default_views() {
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Contextual filter: Flags: User uid */
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
$handler->display->display_options['arguments']['uid']['table'] = 'flag_content';
$handler->display->display_options['arguments']['uid']['table'] = 'flagging';
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
$handler->display->display_options['arguments']['uid']['relationship'] = 'flag_content_rel';
$handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
Expand All @@ -280,18 +256,6 @@ function message_subscribe_ui_views_default_views() {
$handler->display->display_options['filters']['status']['value'] = '1';
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
$translatables['subscribe_user'] = array(
t('Master'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('You are not subscribed to any item.'),
t('flag'),
t('All'),
);
$export['subscribe_user'] = $view;

return $export;
Expand Down

0 comments on commit aa570f0

Please sign in to comment.