CentOS 5.4
Apache 2.2.3
PHP 5.3.2 / 128M mem limit
MySQL 5.0.77
Drupal 6.17 (multisite installation)
Secure Permissions 6.x-1.1

1) Installed Secure Permissions in /site/all/modules
2) Enabled Secure Permissions module
3) Created role 'test'

4) Went to /admin/user/secure_permissions/export copied text
5) Created a .module file: /sites/all/modules/secure_permissions/custom_secure_permissions.modules
6) Pasted text into .module with a leading <?php

7) Created a .info file: /sites/all/modules/secure_permissions/custom_secure_permissions.info
8) Enabled Custom Secure Permissions module

9) Visited /admin/user/secure_permissions
10) Error: Your permissions have not been exported to code yet.

Any ideas on what I should start checking first?
[thanks agentrickard for your prior help]

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cos’s picture

Solved problem. Named hook wrong. Doh.

I've done some housekeeping on the module to make it easier for others. Where should I send the suggested changes?

agentrickard’s picture

Attach a patch here.

http://drupal.org/patch/create

cos’s picture

agentrickard’s picture

Problem is, you can't provide a secure_permissions_data.module in the download tarball, because module updates would overwrite your custom file.

That's why we don't do this now. Yes, this module expects that you understand some advanced concepts, but it's targeted at developers who should be comfortable with the issues involved.

Other documentation improvements would be welcome.

agentrickard’s picture

Status: Active » Needs review
FileSize
3.75 KB

Here's a patch that changes the export routine to explicity create a secure_permissions_data module, including a .info file.

cos’s picture

Sweet.
Thanks so much.
I've included a suggestion for the documentation.

cos’s picture

typo & left something out...

agentrickard’s picture

Version: 6.x-1.1 » 7.x-1.4
Status: Needs review » Patch (to be ported)

Committed.

agentrickard’s picture

Status: Patch (to be ported) » Fixed
FileSize
4.61 KB

Done.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.