Download & Extend

Remove the 'minimum number of words' feature from Drupal

Project:Drupal core
Version:7.x-dev
Component:node system
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Fields in Core, Needs usability review, Usability

Issue Summary

Part of the content type editing cleanup #521468: Redesign content type editing (after CCK UI is in) it become clear 'Minimum number of words' setting belongs to field settings: either 'long text with summary' or all the way 'long text'.

While at it, it would make sense to change the default value on display. Currently it displays:

Minimum number of words:
0

what might suggest the word limit is zero -- you can not add any words.
It's better to default something like:

Minimum number of words:
Unlimited

Comments

#1

First, "minimum number of words: 0" doesn't mean you can not add any words, it means you can add as few as zero words, ie: no minimum. "Minimum: Unlimited" is non-sensical. You are confusing minimum and maximum.

I have another suggestion for the minimum-words functionality: remove it completely, unless someone can provide a realistic use case in which it is genuinely useful. Note that it really is not useful for requiring a minimum number of words, because users can always enter "x x x x x x" or whatever. So I'm just not sure what the point is.

#2

Agree to remove the confusing setting. Contrib could hook into form and provide neccessary extra validation, right?

#3

Yup, sounds good to me to - I can only see its use in a fairly large site, where restrictions on text is to keep the workflow in the layout well.

#4

Title:Move 'Minimum number of words' from content type settings to field settings and improve its wording» Remove the 'minimum number of words' feature from Drupal

#5

Status:active» needs review

First patch. It completely removes "minimum number of words" from Drupal.

AttachmentSizeStatusTest resultOperations
522184_remove_min_word_count-5.patch6.16 KBIdlePassed: 11863 passes, 0 fails, 0 exceptionsView details

#6

Status:needs review» reviewed & tested by the community

RTBC. I can't wait to see the reaction this gets. :-)

#7

Component:field system» node system

This is no longer really a Field API change.

#8

Would it make sense to move this functionality to a contrib module?

#9

Possibly, though I doubt anyone would ever use it. :-) In any case, that would not affect this patch to remove it from core.

#10

Status:reviewed & tested by the community» fixed

I agree that this can be removed. Committed to CVS HEAD. Thanks!

#11

I think this came from Dries' desire to force posters write more thoughtful nodes in the early drop.org/drupal.org days. It is no longer in use according to http://drupal.org/admin/content/node-type/book. Glad to see this gone form core.

#12

In regards to #8 (keep functionality as a contrib module), here's a start: http://drupal.org/node/363623

#23 in that issue provides this module: http://cvs.drupal.org/viewvc.py/drupal/contributions/sandbox/davereid/co...

#26 is an example of a user that requires this feature, so maybe it'd be worth pointing this (or a similar module) out to D6->D7 upgraders?

#13

> I think this came from Dries' desire to force posters write more thoughtful nodes in the early drop.org/drupal.org days.

We need "Long Gone Features" section in upcoming Drupal Museum.

#14

Moshe is right in #11. It was one of those things ... Like, Mollom 0.1. :-)

#15

Status:fixed» closed (fixed)

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

#16

I realize this issue is long closed, but I just wanted to add that I do in fact use this feature. I don't care if it's contrib'd for D7, I just don't want to see this feature disappear entirely. :)

#17

me too..in fact, does anyone know how to get this feature for Drupal 6?

#18

@#17 Wow dude. Drupal 6 has that built-in, it's in the content type settings. This whole thread is about removing it for Drupal 7, implying that it was already in some previous version of Drupal to begin with.

#19

@#18 oh sorry, do you know if this feature is available for CCK text field?

#20

No, I have no idea, but my guess is no if they're phasing it out of D7.

#21

@#20, makes total sense....how sad...?
how are we going to stop users from posting one word articles? unfortunately I get a lot of those lol