Permalink
Browse files

Removed aliased README file

  • Loading branch information...
1 parent bbdb785 commit 3b4f65a7c3c89b3022457d0b87bdf995c66a0265 @kristofvanroy kristofvanroy committed Apr 13, 2010
View
@@ -1,7 +1,10 @@
+LATEST FIXES
+------------
+DONE - Hide exposed filters
+
FEATURE REQUESTS
----------------
- Demote and Unsticky quick links
- Multiple dashboards
- Google Analytics widgets
-- Hide exposed filters
- Flexible quick link blocks
View
@@ -4,4 +4,4 @@ FEATURE REQUESTS
- Multiple dashboards
- Google Analytics widgets
- Hide exposed filters
--
+- Flexible quick link blocks
View
@@ -2,6 +2,7 @@
#fields tr.region-populated {display: none;}
/* Dashboard column layout */
+#nice-dashboard .admin-panel {margin: 0 0 35px;}
#nice-dashboard .left {float:left; width:49%;}
#nice-dashboard .right {float:right; width:49%;}
#nice-dashboard .clear {clear:both;}
@@ -6,7 +6,7 @@
function nice_dash_comments_views_api() {
return array(
'api' => 2,
- 'path' => drupal_get_path('module', 'nice_dash_comment'),
+ 'path' => drupal_get_path('module', 'nice_dash_comments'),
);
}
@@ -4,4 +4,343 @@
* Implementation of hook_views_default_views().
*/
function nice_dash_comments_views_default_views() {
+ $view = new view;
+ $view->name = 'nice_dash_comments';
+ $view->description = 'Nice dash comments views';
+ $view->tag = 'Nice Dash';
+ $view->view_php = '';
+ $view->base_table = 'comments';
+ $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('fields', array(
+ 'name' => array(
+ 'label' => 'Author',
+ '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' => 0,
+ 'exclude' => 0,
+ 'id' => 'name',
+ 'table' => 'comments',
+ 'field' => 'name',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ 'subject' => array(
+ 'label' => 'Title',
+ '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_comment' => 1,
+ 'exclude' => 0,
+ 'id' => 'subject',
+ 'table' => 'comments',
+ 'field' => 'subject',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ 'comment' => array(
+ 'label' => 'Body',
+ 'alter' => array(
+ 'alter_text' => 0,
+ 'text' => '',
+ 'make_link' => 0,
+ 'path' => '',
+ 'link_class' => '',
+ 'alt' => '',
+ 'prefix' => '',
+ 'suffix' => '',
+ 'target' => '',
+ 'help' => '',
+ 'trim' => 1,
+ 'max_length' => '200',
+ 'word_boundary' => 1,
+ 'ellipsis' => 1,
+ 'strip_tags' => 0,
+ 'html' => 0,
+ ),
+ 'empty' => '',
+ 'hide_empty' => 0,
+ 'empty_zero' => 0,
+ 'exclude' => 0,
+ 'id' => 'comment',
+ 'table' => 'comments',
+ 'field' => 'comment',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ 'edit_comment' => array(
+ 'label' => 'Actions',
+ '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,
+ 'text' => '',
+ 'exclude' => 0,
+ 'id' => 'edit_comment',
+ 'table' => 'comments',
+ 'field' => 'edit_comment',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ 'delete_comment' => array(
+ 'label' => 'Delete',
+ '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,
+ 'text' => '',
+ 'exclude' => 0,
+ 'id' => 'delete_comment',
+ 'table' => 'comments',
+ 'field' => 'delete_comment',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ 'status' => array(
+ 'label' => 'In moderation',
+ '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,
+ 'type' => 'yes-no',
+ 'not' => 0,
+ 'exclude' => 0,
+ 'id' => 'status',
+ 'table' => 'comments',
+ 'field' => 'status',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('sorts', array(
+ 'timestamp' => array(
+ 'order' => 'DESC',
+ 'granularity' => 'second',
+ 'id' => 'timestamp',
+ 'table' => 'comments',
+ 'field' => 'timestamp',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('filters', array(
+ 'name' => array(
+ 'operator' => '=',
+ 'value' => '',
+ 'group' => '0',
+ 'exposed' => TRUE,
+ 'expose' => array(
+ 'use_operator' => 0,
+ 'operator' => 'name_op',
+ 'identifier' => 'name',
+ 'label' => 'Author',
+ 'optional' => 1,
+ 'remember' => 0,
+ ),
+ 'case' => 1,
+ 'id' => 'name',
+ 'table' => 'comments',
+ 'field' => 'name',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('access', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('cache', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('title', 'Latest comments');
+ $handler->override_option('use_ajax', TRUE);
+ $handler->override_option('use_pager', 'mini');
+ $handler->override_option('style_plugin', 'table');
+ $handler->override_option('style_options', array(
+ 'grouping' => '',
+ 'override' => 1,
+ 'sticky' => 0,
+ 'order' => 'asc',
+ 'columns' => array(
+ 'name' => 'name',
+ 'subject' => 'subject',
+ 'comment' => 'subject',
+ 'delete_comment' => 'edit_comment',
+ 'edit_comment' => 'edit_comment',
+ 'status' => 'status',
+ ),
+ 'info' => array(
+ 'name' => array(
+ 'sortable' => 0,
+ 'separator' => '',
+ ),
+ 'subject' => array(
+ 'sortable' => 1,
+ 'separator' => '<br />',
+ ),
+ 'comment' => array(
+ 'separator' => '',
+ ),
+ 'delete_comment' => array(
+ 'separator' => '',
+ ),
+ 'edit_comment' => array(
+ 'separator' => ' | ',
+ ),
+ 'status' => array(
+ 'sortable' => 0,
+ 'separator' => '',
+ ),
+ ),
+ 'default' => '-1',
+ ));
+ $handler = $view->new_display('block', 'Latest comments', 'block_1');
+ $handler->override_option('style_options', array(
+ 'grouping' => '',
+ 'override' => 1,
+ 'sticky' => 0,
+ 'order' => 'asc',
+ 'columns' => array(
+ 'name' => 'name',
+ 'subject' => 'subject',
+ 'comment' => 'subject',
+ 'edit_comment' => 'edit_comment',
+ 'delete_comment' => 'edit_comment',
+ 'status' => 'status',
+ ),
+ 'info' => array(
+ 'name' => array(
+ 'sortable' => 1,
+ 'separator' => '',
+ ),
+ 'subject' => array(
+ 'sortable' => 1,
+ 'separator' => '<br />',
+ ),
+ 'comment' => array(
+ 'separator' => '',
+ ),
+ 'edit_comment' => array(
+ 'separator' => ' | ',
+ ),
+ 'delete_comment' => array(
+ 'separator' => '',
+ ),
+ 'status' => array(
+ 'sortable' => 1,
+ 'separator' => '',
+ ),
+ ),
+ 'default' => '-1',
+ ));
+ $handler->override_option('block_description', '');
+ $handler->override_option('block_caching', -1);
+
+ $views[$view->name] = $view;
+ return $views;
}
Oops, something went wrong.

0 comments on commit 3b4f65a

Please sign in to comment.