Posted by moritzz on May 13, 2011 at 3:49pm
4 followers
| Project: | Features |
| Version: | 6.x-1.x-dev |
| Component: | Filter |
| Category: | feature request |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Features 6.x-1.0 does in fact contain the API implementation to support the filter module. For some reason, there is something missing - probably because the implementation has issues. Based on the input from nedjo at #616496: Features integration, I compiled a patch to add basic filter support to features 6.x-1.0. (For example filter settings are not exporter to the feature - because I only saved input formats without settings, this was no issue for my setup.) Check it out.
| Attachment | Size |
|---|---|
| features-6.x-1.0-filter.patch | 791 bytes |
Comments
#1
+1
Similar: #643566: Text formats
#2
AFAIK this is doable with http://drupal.org/project/input_formats
#3
Thank you, that what I was looking for.
#4
Well, it exists in the 7.x branch so no need do 7.x
<?php/**
* Implements hook_features_export_options().
*/
function filter_features_export_options() {
$options = array();
foreach (filter_formats() as $format => $info) {
$options[$format] = $info->name;
}
return $options;
}
?>
is the d7 implementation. Looks like it was added in #643566: Text formats and not backported.
I don't think options need to be check_plain, though not sure why (just been noticing none of the options are in other hook_features_export_options). hmm
#5
#6
Exact patch added below.
Thanks
#7
Automatically closed -- issue fixed for 2 weeks with no activity.