forked from definitivedrupal/dgd7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Field permissions module (requires database update).
- Loading branch information
Showing
7 changed files
with
138 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
drupal/sites/all/modules/field_permissions/field_permissions.info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
name = Field Permissions | ||
description = Set field-level permissions to edit or view CCK fields in any node, edit field during node creation, and edit or view permissions for nodes owned by the current user. | ||
description = Set field-level permissions to create, update or view fields. | ||
dependencies[] = field_ui | ||
package = CCK | ||
package = Fields | ||
core = 7.x | ||
files[] = field_permissions.module | ||
files[] = includes/admin.inc | ||
files[] = includes/field_access.inc | ||
configure = admin/reports/fields/permissions | ||
|
||
; Information added by drupal.org packaging script on 2011-02-25 | ||
; Information added by drupal.org packaging script on 2011-03-31 | ||
version = "7.x-1.x-dev" | ||
core = "7.x" | ||
project = "field_permissions" | ||
datestamp = "1298619255" | ||
datestamp = "1301530067" | ||
|
28 changes: 28 additions & 0 deletions
28
drupal/sites/all/modules/field_permissions/field_permissions.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Install, update and uninstall functions for the Field Permissions module. | ||
*/ | ||
|
||
/** | ||
* Implements hook_install(). | ||
*/ | ||
function field_permissions_install() { | ||
// Set a larger weight for the module. | ||
db_update('system') | ||
->fields(array('weight' => 50)) | ||
->condition('name', 'field_permissions') | ||
->execute(); | ||
} | ||
|
||
/** | ||
* Sets a larger weight for the module so that the Field Permissions become available. | ||
*/ | ||
function field_permissions_update_7000(&$sandbox) { | ||
db_update('system') | ||
->fields(array('weight' => 50)) | ||
->condition('name', 'field_permissions') | ||
->execute(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters