I love this module... simple and it just works!

It would be great if the module could be updated to work with the Features module so when create a new feature it could keep track of all the path_access settings.

It seems like the simplest way to do this would be to store all the settings in the variable table rather than in its own path_access table. Then the settings would be available when using Strongarm along with Features. But, perhaps there are plans to extend the module further and the separate table is desired for that reason, or there is some other reason the path_access table is used instead of using the Drupal variable settings.

Cheers,
Kristen

CommentFileSizeAuthor
#4 1062600.patch2.51 KBrzanetti
#4 1062600.patch2.51 KBrzanetti

Comments

budda’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Using Ctools exportables API would be the correct way to do it. Just need to find time! Patches welcome, for 7.x or even 6.x

kristen pol’s picture

Wish I had the time... can't get to all my issues :/

rooby’s picture

Issue summary: View changes

Since the data is just in a single, stand-alone table, a work around is to dump that table out and import it elsewhere, however a features integration would be a nice addition.

rzanetti’s picture

StatusFileSize
new2.51 KB
new2.51 KB

I've created this patch, so all the data saved can be exported in the Features module.

How to use:
- Create a custom module and add the following dependencies and features in the .info file:

dependencies[] = path_access
dependencies[] = strongarm
features[ctools][] = strongarm:strongarm:1
features[variable][] = path_access_feature_store

- Create a strongarm.inc file and add the function:

function MYMODULE_strongarm() {
  $export = array();

  $strongarm = new stdClass();
  $strongarm->disabled = FALSE;
  $strongarm->api_version = 1;
  $strongarm->name = 'path_access_feature_store';
  $strongarm->value = 0;
  $export['path_access_feature_store'] = $strongarm;

  return $export;
}

- Add the patch to your project:

  path_access:
    subdir: contrib
    version: "1.0-beta2"
    patch:
      1062600:
        url: 'URL_TO_PATCH/1062600.patch'