Skip to content

Instantly share code, notes, and snippets.

@willwhite
Created October 1, 2010 19:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willwhite/606732 to your computer and use it in GitHub Desktop.
Save willwhite/606732 to your computer and use it in GitHub Desktop.
diff --git js/theme.js js/theme.js
index e63029b..5976949 100644
--- js/theme.js
+++ js/theme.js
@@ -59,14 +59,6 @@ Drupal.behaviors.jake = function (context) {
Drupal.jake.checkl10n();
});
- // Hide the context ui category selector if there is only one option
- $('#block-spaces_dashboard-editor .block-title').click(function() {
- if ($('#spaces-dashboard-editor select.context-block-browser-categories option').size() == 1) {
- $('#spaces-dashboard-editor select.context-block-browser-categories').val('boxes').change();
- $('#spaces-dashboard-editor div.categories').hide();
- }
- });
-
// Activate spaces dashboard editor when a box is edited
$('.boxes-box-controls .links li.edit').children('a:not(.jake-processed)').each(function() {
$(this).addClass('jake-processed');
@@ -120,6 +112,17 @@ Drupal.behaviors.jake = function (context) {
});
});
+ // Hide the context ui category selector if there is only one option
+ $('#block-spaces_dashboard-editor .block-title:not(.jake-processed)').each(function() {
+ $(this).addClass('jake-processed');
+ $(this).click(function() {
+ if ($('#spaces-dashboard-editor select.context-block-browser-categories option').size() == 1) {
+ $('#spaces-dashboard-editor select.context-block-browser-categories').val('boxes').change();
+ $('#spaces-dashboard-editor div.categories').hide();
+ }
+ });
+ });
+
$('#content div.feeditem div.feeditem-labels:not(.jake-processed)')
.addClass('jake-processed')
.each(function() {
Index: mn_about.features.user_permission.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/profiles/managingnews/modules/features/mn_about/Attic/mn_about.features.user_permission.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 mn_about.features.user_permission.inc
--- mn_about.features.user_permission.inc 12 Sep 2010 19:47:42 -0000 1.1.2.1
+++ mn_about.features.user_permission.inc 1 Oct 2010 19:36:02 -0000
@@ -9,41 +9,31 @@ function mn_about_user_default_permissio
// Exported permission: create book content
$permissions['create book content'] = array(
'name' => 'create book content',
- 'roles' => array(
- '0' => 'admin',
- ),
+ 'roles' => array(),
);
// Exported permission: delete any book content
$permissions['delete any book content'] = array(
'name' => 'delete any book content',
- 'roles' => array(
- '0' => 'admin',
- ),
+ 'roles' => array(),
);
// Exported permission: delete own book content
$permissions['delete own book content'] = array(
'name' => 'delete own book content',
- 'roles' => array(
- '0' => 'admin',
- ),
+ 'roles' => array(),
);
// Exported permission: edit any book content
$permissions['edit any book content'] = array(
'name' => 'edit any book content',
- 'roles' => array(
- '0' => 'admin',
- ),
+ 'roles' => array(),
);
// Exported permission: edit own book content
$permissions['edit own book content'] = array(
'name' => 'edit own book content',
- 'roles' => array(
- '0' => 'admin',
- ),
+ 'roles' => array(),
);
return $permissions;
Index: mn_core.feeds_importer_default.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/profiles/managingnews/modules/features/mn_core/Attic/mn_core.feeds_importer_default.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 mn_core.feeds_importer_default.inc
--- mn_core.feeds_importer_default.inc 12 Sep 2010 19:49:56 -0000 1.1.2.1
+++ mn_core.feeds_importer_default.inc 27 Oct 2010 19:45:14 -0000
@@ -122,6 +122,7 @@ function mn_core_feeds_importer_default(
),
),
'expire' => '7257600',
+ 'delete_with_source' => 1,
),
),
'content_type' => 'feed',
Index: mn_core.features.user_permission.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/profiles/managingnews/modules/features/mn_core/Attic/mn_core.features.user_permission.inc,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 mn_core.features.user_permission.inc
--- mn_core.features.user_permission.inc 30 Sep 2010 16:43:50 -0000 1.1.2.3
+++ mn_core.features.user_permission.inc 1 Oct 2010 19:28:15 -0000
@@ -6,6 +6,31 @@
function mn_core_user_default_permissions() {
$permissions = array();
+ // Exported permission: access administration pages
+ $permissions['access administration pages'] = array(
+ 'name' => 'access administration pages',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
+ // Exported permission: access site reports
+ $permissions['access site reports'] = array(
+ 'name' => 'access site reports',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
+ // Exported permission: access user profiles
+ $permissions['access user profiles'] = array(
+ 'name' => 'access user profiles',
+ 'roles' => array(
+ '0' => 'admin',
+ '1' => 'authenticated user',
+ ),
+ );
+
// Exported permission: administer blocks
$permissions['administer blocks'] = array(
'name' => 'administer blocks',
@@ -22,6 +47,14 @@ function mn_core_user_default_permission
),
);
+ // Exported permission: administer features
+ $permissions['administer features'] = array(
+ 'name' => 'administer features',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
// Exported permission: administer feeds
$permissions['administer feeds'] = array(
'name' => 'administer feeds',
@@ -30,6 +63,14 @@ function mn_core_user_default_permission
),
);
+ // Exported permission: administer filters
+ $permissions['administer filters'] = array(
+ 'name' => 'administer filters',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
// Exported permission: administer mn
$permissions['administer mn'] = array(
'name' => 'administer mn',
@@ -46,6 +87,14 @@ function mn_core_user_default_permission
),
);
+ // Exported permission: administer search
+ $permissions['administer search'] = array(
+ 'name' => 'administer search',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
// Exported permission: administer site configuration
$permissions['administer site configuration'] = array(
'name' => 'administer site configuration',
@@ -67,6 +116,7 @@ function mn_core_user_default_permission
'name' => 'change own username',
'roles' => array(
'0' => 'admin',
+ '1' => 'authenticated user',
),
);
@@ -161,6 +211,14 @@ function mn_core_user_default_permission
),
);
+ // Exported permission: manage features
+ $permissions['manage features'] = array(
+ 'name' => 'manage features',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
// Exported permission: manage stored views
$permissions['manage stored views'] = array(
'name' => 'manage stored views',
@@ -178,6 +236,30 @@ function mn_core_user_default_permission
),
);
+ // Exported permission: search content
+ $permissions['search content'] = array(
+ 'name' => 'search content',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
+ // Exported permission: select different theme
+ $permissions['select different theme'] = array(
+ 'name' => 'select different theme',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
+ // Exported permission: use advanced search
+ $permissions['use advanced search'] = array(
+ 'name' => 'use advanced search',
+ 'roles' => array(
+ '0' => 'admin',
+ ),
+ );
+
// Exported permission: view uploaded files
$permissions['view uploaded files'] = array(
'name' => 'view uploaded files',
Index: mn_core.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/profiles/managingnews/modules/features/mn_core/Attic/mn_core.info,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 mn_core.info
--- mn_core.info 30 Sep 2010 17:32:00 -0000 1.1.2.4
+++ mn_core.info 1 Oct 2010 19:28:15 -0000
@@ -51,11 +51,17 @@ features[imagecache][] = "logo_print"
features[mark][] = "trash"
features[node][] = "feed"
features[taxonomy][] = "tags"
+features[user_permission][] = "access administration pages"
+features[user_permission][] = "access site reports"
+features[user_permission][] = "access user profiles"
features[user_permission][] = "administer blocks"
features[user_permission][] = "administer dashboards"
+features[user_permission][] = "administer features"
features[user_permission][] = "administer feeds"
+features[user_permission][] = "administer filters"
features[user_permission][] = "administer mn"
features[user_permission][] = "administer permissions"
+features[user_permission][] = "administer search"
features[user_permission][] = "administer site configuration"
features[user_permission][] = "administer users"
features[user_permission][] = "change own username"
@@ -70,8 +76,12 @@ features[user_permission][] = "edit own
features[user_permission][] = "import opml feeds"
features[user_permission][] = "import syndication feeds"
features[user_permission][] = "import terms feeds"
+features[user_permission][] = "manage features"
features[user_permission][] = "manage stored views"
features[user_permission][] = "mark items"
+features[user_permission][] = "search content"
+features[user_permission][] = "select different theme"
+features[user_permission][] = "use advanced search"
features[user_permission][] = "view uploaded files"
features[user_role][] = "admin"
features[variable][] = "allowed_html_1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment