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.

CommentFileSizeAuthor
#6 1349608.patch889 byteshefox
features-6.x-1.0-filter.patch791 bytesmoritzz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb’s picture

joachim’s picture

AFAIK this is doable with http://drupal.org/project/input_formats

kenorb’s picture

Thank you, that what I was looking for.

hefox’s picture

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

Well, it exists in the 7.x branch so no need do 7.x

/**
 * 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

hefox’s picture

Component: Code » Filter
hefox’s picture

Status: Needs review » Fixed
FileSize
889 bytes

Exact patch added below.

Thanks

Status: Fixed » Closed (fixed)

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

bendev’s picture

thanks for #6 Works as expected.