To be able drag sort this private message settings field in admin/config/people/accounts/fields you should append this to function privatemsg_field_extra_fields()


    $extra['user']['user']['form']['privatemsg'] = array(
      'label' => t('Privatemessage settings'),
      'description' => t('Settings for private messages and affiliated modules'),
      'weight' => 5,
    );

D&D Rocks!!1!

Comments

simon georges’s picture

Status: Active » Needs review
StatusFileSize
new841 bytes

First attempt at a patch (handling both the form and the display).

7.x-1.x version is handled by #1200214: Display Private Message Options on the user manage fields page to allow reordering on user form page.

simon georges’s picture

I suppose it could then be possible to remove the "Display link on profile pages" option, since it can be disabled by setting the "display" to "hidden" with this new functionality.

berdir’s picture

Yeah, that makes sense, atleast for 7.x-2.x. Do you want to extend the patch or create a new issue to do that?

simon georges’s picture

New attempt at a patch (removing the variable).

simon georges’s picture

Ooops. This one is the good one.

simon georges’s picture

Cross-referencing #1490758: Follow-up task from #1200214: removing useless variable, because it contains the same patch as this one (minus a part that has already been committed in #1200214: Display Private Message Options on the user manage fields page to allow reordering on user form page).

berdir’s picture

Status: Needs review » Closed (duplicate)

Closing this as duplicate of #1200214: Display Private Message Options on the user manage fields page to allow reordering on user form page as I've commited that to 7.x-2.x already and the variable stuff is dealt with in the other issue.