Private message module is preparing support for input filter.
It is working fine, but I find that there is shown collapsed fieldset for selecting input format, although i have enabled better_formats module.
Can you please add permission "show format selection for private message" and function support for this, into your module?

Her you can find latest info: http://drupal.org/node/373124#comment-2050366



dragonwize’s picture

Status:Active» Postponed

I would be happy to look into adding privatemsg integration. When the input format patch is committed and final I will look into it more.

andypost’s picture

Version:6.x-1.1-rc2» 6.x-1.1
Status:Postponed» Active

Suppose it's time to make it active because commited #373124: Input Filter

skizzo’s picture

should this be included in the project page roadmap?

uomeds’s picture

I also notice Privatemsg now works with Input Formatting, which is fantastic, but I still can't disable user access to the various formats.

I am using Privatemsg 6.x-1.0-rc4. I see this might be fixed in the latest dev. Where do I download it if so?


savioret’s picture


thehandyman’s picture


PepeMty’s picture


freddyseubert’s picture

subscribing - this would be a nice feature

skylord’s picture


igorik’s picture

Better formats is probably dead project, however, I hide it using css.

savioret’s picture

And what is the "alive" alternative to better formats ?

dragonwize’s picture

Not sure what definition of "dead" you are using here. But the module is very much active. A new version was just posted last month.

If you would like this feature pushed through faster, you can help with development otherwise it has to wait till I get around to it.

Weka’s picture

+ 1 for adding Privatemsg integration.
Thank you for a great module.

nyleve101’s picture

Hi, just wondering how you hide it with css??

Thanks Evelyn

igorik’s picture


those are my css rules, if you don't use privatemsg attachments or privatemsg forward, ignore or edit first rule
The format fieldset has no css class so I am hiding all collapsed fieldsets on privatemsg. It is ok because (for now) there are no other fieldsets except input format fieldset, and optionally privatemsg attachments and privatemsg forward fieldset.
In the future, I hope that better formats will be support privatemsg input and those css rules will be no necessary.

#privatemsg-new div.attachments fieldset, #privatemsg-new div.forward-user fieldset {
visibility: visible !important;
margin-bottom: 15px;
#privatemsg-new div fieldset.collapsed {
visibility: hidden;
freddyseubert’s picture


I wanted to hide the whole collapsible fieldset with CSS. First I had to add a CSS-class to the fieldset with the following code in my themes' (customized Garland) template.php:

 * Add custom CSS selectors to collapsible fieldsets.
 * This provides the ability to hide these fieldsets with the use of CSS.
function phptemplate_fieldset($element) {
  if (
$element['#collapsible']) {
# custom fieldset CSS class from element #title
$css_class = "hideme-";
$css_class .= str_replace(" ","-",strtolower($element['#title']));
# using transliteration module to transliterate/strip non-ASCII character where available
# including Transliteration functions
require_once(drupal_get_path('module', 'transliteration') .'/transliteration.inc');
$css_class = transliteration_clean_filename($css_class);
    if (!isset(
$element['#attributes']['class'])) {
$element['#attributes']['class'] = '';

$element['#attributes']['class'] .= ' collapsible';
    if (
$element['#collapsed']) {
$element['#attributes']['class'] .= ' collapsed';
$element['#attributes']['class'] .= " ".$css_class;

'<fieldset' . drupal_attributes($element['#attributes']) .'>' . ($element['#title'] ? '<legend>'. $element['#title'] .'</legend>' : '') . ($element['#description'] ? '<div class="description">'. $element['#description'] .'</div>' : '') . $element['#children'] . $element['#value'] . "</fieldset>\n";

(this snipplet is taken from http://chirale.wordpress.com/2008/03/17/add-css-class-to-drupal-form-fie... )

After that, you can hide the format-fieldset with CSS.

I don't know if this is the "right" way, but it works. :)

nyleve101’s picture

freddyseubert and igorik thank you both so much for getting back to me, it's very kind of you and much appreciated!

Hope all is well and you're taking care of yourself!


dragonwize’s picture

Status:Active» Postponed

Other modules will be able to take advantage of BF in 3.x.

dberror’s picture

I do it this way:

function mymodule_form_alter(&$form, &$form_state, $form_id) {
// hide input format fieldset for privatemsg
if ($form['#id'] == 'privatemsg-new') {

Hiding with css is a wrong way.