Index: views/activity.views_default.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/activity/views/Attic/activity.views_default.inc,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 activity.views_default.inc
--- views/activity.views_default.inc 20 Sep 2009 00:12:34 -0000 1.1.2.9
+++ views/activity.views_default.inc 9 Nov 2009 01:24:22 -0000
@@ -113,360 +113,311 @@ function activity_views_default_views()
$views[$view->name] = $view;
// Activity Maintenance
- $view = new view;
- $view->name = 'activity_batch_controls';
- $view->description = 'Control panel for activity. View delete sort. Admins only.';
- $view->tag = 'activity';
- $view->view_php = '';
- $view->base_table = 'activity';
- $view->is_cacheable = FALSE;
- $view->api_version = 2;
- $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
- $handler = $view->new_display('default', 'Defaults', 'default');
- $handler->override_option('relationships', array(
- 'uid' => array(
- 'label' => 'User',
- 'required' => 1,
- 'id' => 'uid',
- 'table' => 'activity',
- 'field' => 'uid',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('fields', array(
- 'name' => array(
- 'label' => 'Name',
- 'alter' => array(
- '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_user' => 1,
- 'overwrite_anonymous' => 0,
- 'anonymous_text' => '',
- 'exclude' => 0,
- 'id' => 'name',
- 'table' => 'users',
- 'field' => 'name',
- 'relationship' => 'uid',
- ),
- 'message' => array(
- 'label' => 'Message',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'exclude' => 0,
- 'id' => 'message',
- 'table' => 'activity_messages',
- 'field' => 'message',
- 'relationship' => 'none',
- ),
- 'op' => array(
- 'label' => 'Operation',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'exclude' => 0,
- 'id' => 'op',
- 'table' => 'activity',
- 'field' => 'op',
- 'relationship' => 'none',
- ),
- 'type' => array(
- 'label' => 'Type',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'exclude' => 0,
- 'id' => 'type',
- 'table' => 'activity',
- 'field' => 'type',
- 'relationship' => 'none',
- ),
- 'created' => array(
- 'label' => 'Activity Creation Date',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'date_format' => 'small',
- 'custom_date_format' => '',
- 'exclude' => 0,
- 'id' => 'created',
- 'table' => 'activity',
- 'field' => 'created',
- 'relationship' => 'none',
- ),
- 'delete_activity' => array(
- 'label' => 'Delete link',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'text' => 'delete',
- 'exclude' => 0,
- 'id' => 'delete_activity',
- 'table' => 'activity',
- 'field' => 'delete_activity',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('sorts', array(
- 'uid' => array(
- 'order' => 'ASC',
- 'id' => 'uid',
- 'table' => 'activity',
- 'field' => 'uid',
- 'relationship' => 'none',
- ),
- 'created' => array(
- 'order' => 'ASC',
- 'granularity' => 'second',
- 'id' => 'created',
- 'table' => 'activity',
- 'field' => 'created',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('filters', array(
- 'uid' => array(
- 'operator' => 'in',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'uid_op',
- 'identifier' => 'uid',
- 'label' => 'Activity: User',
- 'optional' => 1,
- 'remember' => 0,
- 'reduce' => 0,
- ),
- 'id' => 'uid',
- 'table' => 'activity',
- 'field' => 'uid',
- 'relationship' => 'none',
- ),
- 'op' => array(
- 'operator' => 'in',
- 'value' => array(),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'op_op',
- 'identifier' => 'op',
- 'label' => 'Activity: Operation',
- 'optional' => 1,
- 'single' => 1,
- 'remember' => 0,
- 'reduce' => 0,
- ),
- 'case' => 1,
- 'id' => 'op',
- 'table' => 'activity',
- 'field' => 'op',
- 'relationship' => 'none',
- 'override' => array(
- 'button' => 'Override',
- ),
- ),
- 'type' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'type_op',
- 'identifier' => 'type',
- 'label' => 'Activity: Type',
- 'optional' => 1,
- 'remember' => 0,
- ),
- 'case' => 1,
- 'id' => 'type',
- 'table' => 'activity',
- 'field' => 'type',
- 'relationship' => 'none',
- ),
- 'nid' => array(
- 'operator' => '=',
- 'value' => array(
- 'value' => '',
- 'min' => '',
- 'max' => '',
- ),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'nid_op',
- 'identifier' => 'nid',
- 'label' => 'Activity on Node: Nid',
- 'optional' => 1,
- 'remember' => 0,
- ),
- 'id' => 'nid',
- 'table' => 'node',
- 'field' => 'nid',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'none',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('header', 'You can filter these results by providing criteria in the boxes below.
-
- Activity: User - filter by the user who created the activity.
- - Activity: Operation - filter by the Operation field.
- - Activity: Type - filter by the Type field.
- - Activity on Node: Nid - filter by a particular node id.
');
- $handler->override_option('header_format', '2');
- $handler->override_option('header_empty', 1);
- $handler->override_option('use_ajax', TRUE);
- $handler->override_option('items_per_page', 50);
- $handler->override_option('use_pager', '1');
- $handler->override_option('style_plugin', 'table');
- $handler->override_option('style_options', array(
- 'grouping' => '',
- 'override' => 1,
- 'sticky' => 1,
- 'order' => 'desc',
- 'columns' => array(
- 'name' => 'name',
- 'message' => 'message',
- 'type' => 'type',
- 'op' => 'op',
- 'created' => 'created',
- 'delete_activity' => 'delete_activity',
- ),
- 'info' => array(
- 'name' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'message' => array(
- 'separator' => '',
- ),
- 'op' => array(
- 'separator' => '',
- ),
- 'type' => array(
- 'separator' => '',
- ),
- 'created' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'delete_activity' => array(
- 'separator' => '',
- ),
- ),
- 'default' => 'created',
- ));
- $handler = $view->new_display('page', 'Page', 'page_1');
- $handler->override_option('path', 'admin/settings/activity/maintenance');
- $handler->override_option('menu', array(
- 'type' => 'tab',
- 'title' => 'Maintenance',
- 'description' => 'Maintain your activity records',
- 'weight' => '10',
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- ));
+ $view = new view;
+ $view->name = 'activity_batch_controls';
+ $view->description = 'Control panel for activity. View delete sort. Admins only.';
+ $view->tag = 'activity';
+ $view->view_php = '';
+ $view->base_table = 'activity';
+ $view->is_cacheable = FALSE;
+ $view->api_version = 2;
+ $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
+ $handler = $view->new_display('default', 'Defaults', 'default');
+ $handler->override_option('relationships', array(
+ 'uid' => array(
+ 'label' => 'User',
+ 'required' => 1,
+ 'id' => 'uid',
+ 'table' => 'activity',
+ 'field' => 'uid',
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('fields', array(
+ 'name' => array(
+ 'label' => 'Name',
+ 'alter' => array(
+ '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_user' => 1,
+ 'overwrite_anonymous' => 0,
+ 'anonymous_text' => '',
+ 'exclude' => 0,
+ 'id' => 'name',
+ 'table' => 'users',
+ 'field' => 'name',
+ 'relationship' => 'uid',
+ ),
+ 'message' => array(
+ 'label' => 'Message',
+ 'alter' => array(
+ 'alter_text' => 0,
+ 'text' => '',
+ 'make_link' => 0,
+ 'path' => '',
+ 'link_class' => '',
+ 'alt' => '',
+ 'prefix' => '',
+ 'suffix' => '',
+ 'help' => '',
+ 'trim' => 0,
+ 'max_length' => '',
+ 'word_boundary' => 1,
+ 'ellipsis' => 1,
+ 'strip_tags' => 0,
+ 'html' => 0,
+ ),
+ 'exclude' => 0,
+ 'id' => 'message',
+ 'table' => 'activity_messages',
+ 'field' => 'message',
+ 'relationship' => 'none',
+ ),
+ 'type' => array(
+ 'label' => 'Type',
+ 'alter' => array(
+ 'alter_text' => 0,
+ 'text' => '',
+ 'make_link' => 0,
+ 'path' => '',
+ 'link_class' => '',
+ 'alt' => '',
+ 'prefix' => '',
+ 'suffix' => '',
+ 'help' => '',
+ 'trim' => 0,
+ 'max_length' => '',
+ 'word_boundary' => 1,
+ 'ellipsis' => 1,
+ 'strip_tags' => 0,
+ 'html' => 0,
+ ),
+ 'exclude' => 0,
+ 'id' => 'type',
+ 'table' => 'activity',
+ 'field' => 'type',
+ 'relationship' => 'none',
+ ),
+ 'created' => array(
+ 'label' => 'Activity Creation Date',
+ 'alter' => array(
+ 'alter_text' => 0,
+ 'text' => '',
+ 'make_link' => 0,
+ 'path' => '',
+ 'link_class' => '',
+ 'alt' => '',
+ 'prefix' => '',
+ 'suffix' => '',
+ 'help' => '',
+ 'trim' => 0,
+ 'max_length' => '',
+ 'word_boundary' => 1,
+ 'ellipsis' => 1,
+ 'strip_tags' => 0,
+ 'html' => 0,
+ ),
+ 'date_format' => 'small',
+ 'custom_date_format' => '',
+ 'exclude' => 0,
+ 'id' => 'created',
+ 'table' => 'activity',
+ 'field' => 'created',
+ 'relationship' => 'none',
+ ),
+ 'delete_activity' => array(
+ 'label' => 'Delete link',
+ 'alter' => array(
+ 'alter_text' => 0,
+ 'text' => '',
+ 'make_link' => 0,
+ 'path' => '',
+ 'link_class' => '',
+ 'alt' => '',
+ 'prefix' => '',
+ 'suffix' => '',
+ 'help' => '',
+ 'trim' => 0,
+ 'max_length' => '',
+ 'word_boundary' => 1,
+ 'ellipsis' => 1,
+ 'strip_tags' => 0,
+ 'html' => 0,
+ ),
+ 'text' => 'delete',
+ 'exclude' => 0,
+ 'id' => 'delete_activity',
+ 'table' => 'activity',
+ 'field' => 'delete_activity',
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('sorts', array(
+ 'uid' => array(
+ 'order' => 'ASC',
+ 'id' => 'uid',
+ 'table' => 'activity',
+ 'field' => 'uid',
+ 'relationship' => 'none',
+ ),
+ 'created' => array(
+ 'order' => 'ASC',
+ 'granularity' => 'second',
+ 'id' => 'created',
+ 'table' => 'activity',
+ 'field' => 'created',
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('filters', array(
+ 'uid' => array(
+ 'operator' => 'in',
+ 'value' => '',
+ 'group' => '0',
+ 'exposed' => TRUE,
+ 'expose' => array(
+ 'use_operator' => 0,
+ 'operator' => 'uid_op',
+ 'identifier' => 'uid',
+ 'label' => 'Activity: User',
+ 'optional' => 1,
+ 'remember' => 0,
+ 'reduce' => 0,
+ ),
+ 'id' => 'uid',
+ 'table' => 'activity',
+ 'field' => 'uid',
+ 'relationship' => 'none',
+ ),
+ 'type' => array(
+ 'operator' => '=',
+ 'value' => '',
+ 'group' => '0',
+ 'exposed' => TRUE,
+ 'expose' => array(
+ 'use_operator' => 0,
+ 'operator' => 'type_op',
+ 'identifier' => 'type',
+ 'label' => 'Activity: Type',
+ 'optional' => 1,
+ 'remember' => 0,
+ ),
+ 'case' => 1,
+ 'id' => 'type',
+ 'table' => 'activity',
+ 'field' => 'type',
+ 'relationship' => 'none',
+ ),
+ 'nid' => array(
+ 'operator' => '=',
+ 'value' => array(
+ 'value' => '',
+ 'min' => '',
+ 'max' => '',
+ ),
+ 'group' => '0',
+ 'exposed' => TRUE,
+ 'expose' => array(
+ 'use_operator' => 0,
+ 'operator' => 'nid_op',
+ 'identifier' => 'nid',
+ 'label' => 'Activity on Node: Nid',
+ 'optional' => 1,
+ 'remember' => 0,
+ ),
+ 'id' => 'nid',
+ 'table' => 'node',
+ 'field' => 'nid',
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('access', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('cache', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('header', 'You can filter these results by providing criteria in the boxes below.
+ - Activity: User - filter by the user who created the activity.
+ - Activity: Operation - filter by the Operation field.
+ - Activity: Type - filter by the Type field.
+ - Activity on Node: Nid - filter by a particular node id.
');
+ $handler->override_option('header_format', '2');
+ $handler->override_option('header_empty', 1);
+ $handler->override_option('use_ajax', TRUE);
+ $handler->override_option('items_per_page', 50);
+ $handler->override_option('use_pager', '1');
+ $handler->override_option('style_plugin', 'table');
+ $handler->override_option('style_options', array(
+ 'grouping' => '',
+ 'override' => 1,
+ 'sticky' => 1,
+ 'order' => 'desc',
+ 'columns' => array(
+ 'name' => 'name',
+ 'message' => 'message',
+ 'type' => 'type',
+ 'op' => 'op',
+ 'created' => 'created',
+ 'delete_activity' => 'delete_activity',
+ ),
+ 'info' => array(
+ 'name' => array(
+ 'sortable' => 1,
+ 'separator' => '',
+ ),
+ 'message' => array(
+ 'separator' => '',
+ ),
+ 'op' => array(
+ 'separator' => '',
+ ),
+ 'type' => array(
+ 'separator' => '',
+ ),
+ 'created' => array(
+ 'sortable' => 1,
+ 'separator' => '',
+ ),
+ 'delete_activity' => array(
+ 'separator' => '',
+ ),
+ ),
+ 'default' => 'created',
+ ));
+ $handler = $view->new_display('page', 'Page', 'page_1');
+ $handler->override_option('path', 'admin/settings/activity/maintenance');
+ $handler->override_option('menu', array(
+ 'type' => 'tab',
+ 'title' => 'Maintenance',
+ 'description' => 'Maintain your activity records',
+ 'weight' => '10',
+ 'name' => 'navigation',
+ ));
+ $handler->override_option('tab_options', array(
+ 'type' => 'none',
+ 'title' => '',
+ 'description' => '',
+ 'weight' => 0,
+ ));
$views[$view->name] = $view;
return $views;