An input format is an ordered collection of filters. Any text that is being displayed to the browser should be run through the filters in an input format first.

learn more… | top users | synonyms (1)

3
votes
1answer
50 views

Create a permanent list of a content type

I have a content type named "clients" which can be filtered within a view and all can be selected using bulk operations. What I would like to do is take the filtered list in the view and copy it to ...
0
votes
1answer
8 views

Why can't I see the settings for the customfilter module in the Drupal admin?

I'm following this tutorial to add a custom filter using the Custom Filter module. I've installed and enabled the module. However, when I try to navigate to /admin/settings/filters like it suggests, ...
0
votes
1answer
16 views

How do I create an AND filter for the same field

I am having a problem with a view filter. I have one field called Category. The field contains a comma separated list of id numbers that represent different categories. I want to create a filter that ...
0
votes
1answer
13 views

Filter Node Reference options

I'm trying to set up the content types for a site and ran into a bit of a problem. Let's say I have a content type called Employee, and a list of taxonomy terms that holds function names. Each ...
0
votes
0answers
9 views

Apply text filter to teaser

I use inline images in my article content type. Currently my Teaser settings strip the HTML tags, leaving me with the text of the image tag, which runs into my article text. I'm reading about making a ...
0
votes
2answers
39 views

How to use tokens in a filtered text field

In Drupal, when you create a field, there is the option "Text Processing". You can select either "plain text" or "Filtered text". When I create a field with "Filtered text", I am unable to use it as ...
1
vote
0answers
27 views

Form always visible even when radiobutton value is changed (form api)

i'm having an issue with the property #states visible on a form. I want to hide it when form mercuriale's value is 1. $isMercuriale = db_query('SELECT isMercuriale FROM groupes_catalogues WHERE id = ...
0
votes
2answers
78 views

Automatically add class to images added through CKEditor

I'm trying to add classes automatically to images which are added through CKEditor, I have spent considerable time trying to research this and found How to add class or attribute automatically to img ...
0
votes
1answer
23 views

filter to remove external links from text

Do you know about a way to automatically remove external links after user submits node? I want to keep only internal ones. I am not able to find any text filter or module which does that. Thank you ...
0
votes
2answers
45 views

What are some examples of filter Correct faulty and chopped off HTML?

In Drupal one of the text filters that is enabled by default is the filter Correct faulty and chopped off HTML. As I understand it must fix HTML bugs. Can anybody please give some example(s) of ...
0
votes
0answers
7 views

D6 Views exposed filter on Search Term field that handles word parts

Is there anyway to have a View with an exposed Search Term field return results for word parts? I am currently using Drupal search. I'd like to use a hook inside of a custom module rather then going ...
0
votes
0answers
20 views

Filter in $form table not working with pager?

I'm trying to add a filter to my table which has a pager. It does work but only for the 1st page. The pager keeps saying (for example: 4 pages) and it should be only 2 after adding the filter. My ...
1
vote
2answers
52 views

filter by taxonomy term = taxonomy term of referencing nodes

I have a node type 'hotels'. These nodes have a reference to a vocabulary 'regions' and a field 'hotel_images'. And I have a node type 'region_page' with also the reference to the vocabulary ...
0
votes
1answer
29 views

Filter module won't let me add nested values to my configuration

I'm working on the D8 port of my xbbcode module; my latest sources are here. The module is supposed to let administrators enable individual BBCode tags either in the global default settings or in an ...
1
vote
1answer
26 views

How to uninstall a text format created by a D8 module?

My module creates its own text format upon installation by having a file named config/install/filter.format.{format}.yml. However, I can't uninstall and reinstall the module, because the format ...
1
vote
0answers
19 views

How to implement a dynamic filter with views in D7?

I have a site where i have several main topics, each containing subtopics. I've made views block which is shown on each of the pages of the main topics where you have two exposed filter options: - ...
0
votes
2answers
28 views

Changing filter plugin settings before they are saved

(This is for D8, although parts of this filter settings API were already in D7.) As far as I understand, a filter plugin exposes its settings solely with FilterBase::settingsForm() - the central ...
0
votes
1answer
65 views

Can I make Text Field accept filtered_html?

I have a content type where a field is the common name for a USA president. In examing a legacy database I'm importing some presidents have (simple) HTML in their name. For example Dwight Eisenhower ...
0
votes
1answer
25 views

Ckeditor can not create new profile with input format

I've already a profile with input types but I can not create another, even when I am cloning the profile with input types. These are my text format, and I using administrator user. This is the list ...
0
votes
1answer
20 views

GTM container in block appears as regular text even though set to be Full-HTML

I have opened a block at the highest region of my site and have putted the GTM-container code inside, at Full HTML input-format. Yet the container code appears as regular text ...
1
vote
1answer
25 views

What is the D6 equivalent of D7's hook_filter_info?

I am backporting a module from D7 to D6, and I am not familiar with Drupal 6. The following three lines runs a chunk of text in the variable $input through the Markdown filter to produce $output. ...
0
votes
1answer
20 views

Find out which nodes use a specific filter

How could I find out which nodes actually use a specific filter? My nodes use an input format that has the Bbcode filter enabled. Now I need to know which (of the several thousand) nodes use BB code, ...
0
votes
1answer
55 views

Programmatically get input format in field template

We change some output in our field.tpl-files for body fields, depending on the input format that was used on the node (which itself depends on the user being able to modify it). Now this worked by ...
1
vote
2answers
259 views

Display HTML code in a Drupal field as plain text

I am using Drupal as a blog for posts about programming. Naturally, I have to post code samples. When I post the code samples, Drupal renders them as actual HTML. How can I stop this from happening? ...
0
votes
0answers
37 views

PHP code is not working on Drupal Rule translation

I am working on a multilingual site and using i18n module for language translation. Now I am trying to translate a Rule containing <?php?> code. But <?php?> code is not working for Rule ...
1
vote
2answers
20 views

Practical solution to get an overview of input formats in use

I'd like to clean up unused text formats on some D7 sites. So I need to know which formats are not used. I tried using VBO for this, but there is no field Content: Text format I can add there. What's ...
0
votes
2answers
39 views

Is there an Input Filter without built-in restrictions?

Is there an Input Filter without built-in restrictions? The built-in Drupal filters and some of the other filters I have checked seem to come with their built-in restrictions, eg The Drupal's own ...
0
votes
1answer
77 views

Does the Full HTML format allow all tags, and is there an Input Filter without built-in restrictions?

Does the Full HTML format allow all tags, without any restrictions at all? I an not quite sure but it seems some input filters have other restrictions in addition to what their options dialogs allow?
0
votes
2answers
127 views

Does Drupal strip out style and span tags?

I was trying use span and style tags in pages, rather than in CSS and it seems that Drupal is configured to strip them out whether the input format is Filtered HTML, ie they are applied to Full HTML. ...
1
vote
0answers
34 views

How do I filter a text field, based on content type?

I've built a custom filter that parses images that were inserted into the node body field. I am trying to have the filter render image sizes based on the content type of the node being created/edited. ...
0
votes
1answer
14 views

Drupal 7 trim user input and other checks to prevent security issues

What is the recommended way in Drupal to perform trim and other checks before accepting user input to avoid sql injections and other similar security issues? Thanks.
0
votes
0answers
23 views

Rebuild all Drupal 6 teasers

I need to regenerate (or rebuild) the node teasers for a Drupal 6 website. There are a couple of examples of how to to this at https://www.drupal.org/node/325832. The first example affects all nodes, ...
2
votes
1answer
76 views

How to insert ads in node bodies?

For WordPress there is e.g. the Quick Adsense plugin which makes it easy to insert ads inside articles before/after specific paragraphs. I would like to have something similar for Drupal. I started ...
0
votes
1answer
38 views

Change text format used for text field when displayed in a view?

I have a content type with a text field that may contain a token from the Media module (that WYSYWIG inserts). This token is typically transformed into HTML by enabling a specific filter for the text ...
0
votes
1answer
31 views

Regarding Filter HTML input option [duplicate]

I want to allow one more tag in Filter html Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>. I want to add ...
0
votes
0answers
69 views

How do I insert an inline image uploaded into another node?

The following scenario: D6, CCK, Filefield and Imagefield. The image is uploaded into node "foo". This image is supposed to be inserted inline into the body text of node "bar". I'm neither using ...
0
votes
0answers
97 views

Programmatically change input filter of term description on taxonomy_form_term

I couldn't find anywhere on the admin UI where I can change the input filter for term's description field. I have tried using hook_form_alter, but wasn't successful. function ...
1
vote
1answer
116 views

Changes to Input Formats not saving: Default instance field is required

When trying to make any changes to any text format, when I click "Save" Drupal returns an error message: "Default instance field is required." and the changes are not saved. Screenshot: ...
0
votes
0answers
36 views

use “no cache” but input filter seems to be cached in Drupal 6

I am trying to display a add to cart button and it only rarely works. It seems to work when the cache is cleared and then not work. I have added the no cache option but this doesn't seem to do ...
3
votes
1answer
615 views

How can I remove emoji from all user input?

It looks like iPhone emoji are not currently supported in Drupal 7 on MySQL. When I try to save a node containing an emoji (I 💛 U!) in the database, I get an SQL error: PDOException: ...
1
vote
1answer
75 views

Select list with input fields

I would like to have the following field widgets: I would like to give the user the possibility to give in 4 nicknames and select the default one that will be shown to other users. Is there a ...
0
votes
2answers
347 views

Prefix html before radiobutton (input field)

I'm looking to insert some extra html before an input radio button. This is my html now: <div id="edit-field-geslacht-und" class="form-radios"> <div class="form-item form-type-radio ...
0
votes
1answer
70 views

Inputs for “am” and “pm” get messed up on the arabic side when editing content

When creating/editing a node on the english side all works ok but when this is done on the arabic side it breaks up the am/pm form. The markup values also change unlike on the month or hour fields. I ...
1
vote
0answers
73 views

drupal_add_js in input filter

I have a module that provides an input filter for Drupal 6 and 7. It renders some elements using a (heavy) JavaScript module that I don't want to include on every page. In Drupal 6 the input filter ...
0
votes
1answer
170 views

Saving the content from a Textarea dont works

An Textfield within my Custom Content Pane works fine. An Textarea incl. input-filter ('#type' => 'text_format',) will not be saved. <?php function text_edit_form($form, &$form_state) { ...
-2
votes
1answer
93 views

Change value input field according to other fields

I have 10 input fields when you create a product (= node). I have an input field amount, price & reduction and sell price. So when the field amount, price & reduction are filled in I want to ...
2
votes
0answers
33 views

How to prevent html conversion of the default value translation of a field?

I have a node field which text format is set to markdown. When I translate the default value with the 18n field module using the markdown syntax, the default value is converted to html in the node add ...
4
votes
2answers
664 views

How to find all inputs that make use of the php input filter to fully disable the php filter module?

I want to disable the PHP Filter module on a large website, but going through all nodes, blocks and other fields where you could make possible use of the php filter would take eons. Is there a simple ...
0
votes
2answers
358 views

How to enable Text formats after disabling it in Drupal?

In attempting to get pictures inline with text, I did the following: Configuration>> content authoring >> text formats>> and disabled Full HTML and Filtered HTML formats. This ...
0
votes
0answers
116 views

How can I prevent Drupal to add extra <p> tags to body field?

I have a content type with body field. I have created few nodes of this content type. When I edit them, I see that there are extra <p> tags have been added to the text of body field. I checked ...