Download & Extend

Export Filters (Input Formats) With Features for Drupal 6

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.

AttachmentSize
features-6.x-1.0-filter.patch791 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

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

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

Component:Code» Filter

#6

Status:needs review» fixed

Exact patch added below.

Thanks

AttachmentSize
1349608.patch 889 bytes

#7

Status:fixed» closed (fixed)

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

nobody click here