Download & Extend

Patch to provide Hook for Default Modes + Export

Project:Mode
Version:6.x-1.0-beta2
Component:Code
Category:task
Priority:normal
Assigned:Jon Pugh
Status:needs work
Issue tags:features

Issue Summary

Here's some initial work that adds Exporting Modes to Code, and implements hook_mode_defaults().

Adds a second table to the modes admin page for "Default" modes, with just an Import link. That link mimics views behavior, it loads up the default mode code and puts it as default values in the Mode Add form.

This is very initial code, eventually would want to fully integrate the normal/default/overridden/revert paradigm, but for now, its a nice way to get permissions into code.

AttachmentSize
mode-defaults.patch7.5 KB

Comments

#1

I am just curious if this has been looked at recently. I could definitely have a use for this module but the exportability would be very beneficial. If it isn't being worked on actively, I will look over the patch and ensure it still works with the beta3 release as well as add any additional changes that I need.