For example, in this export:
/**
* @file
* text_format.my_text_format.inc
*/
$data = (object) array(
'format' => 'my_text_format',
'name' => 'My Text Format',
'cache' => '1',
'status' => '1',
'weight' => '0',
'filters' => array(
'filter_url' => array(
'weight' => '-50',
'status' => '1',
'settings' => array(
'filter_url_length' => '72',
),
),
'filter_html' => array(
'weight' => '-49',
'status' => '1',
'settings' => array(
'allowed_html' => '<a> <em>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
),
),
'filter_htmlcorrector' => array(
'weight' => '-46',
'status' => '1',
'settings' => array(),
),
),
);
$dependencies = array();
$optional = array();
$modules = array(
0 => 'filter',
);
There is no information about which role can use this text format.
Comments
Comment #1
dagmarOk, that export is correct, the role information should be provided in a different permission configuration.
Changing title to reflect the real problem.
Comment #2
dagmarHere is the patch.
Comment #3
dagmarCommited c1a8ff8
Comment #4
dragonwize commentedDo we really want to save the permissions with the format?
For dev/prod scenarios I can see it being nice but we have to start watching for race conditions because if a role was created in the same update and used here the role would need to be import first for it work.
For migration purposes I would never want perms attached to the content. I would export them separately if they were needed.
Comment #5
dagmarHm, interesting. I think we could implement a settings tab like this:
What do you think?
Comment #6
dragonwize commentedhmm, I don't understand your proposal enough to judge it. Where would those be? Are the options global or per config? What happens when you change them?
Comment #7
dagmarThis settings would be global, by default all enabled. If you, as a developer, know that you don't want to export permissions for your text formats, just uncheck the right option. Then the exports will not include the information for the permissions.
If you import those configurations, only items provided in $dependencies and $optionals will be processed.