Needs review
Project:
Node form columns
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 May 2011 at 12:27 UTC
Updated:
8 Jun 2012 at 21:03 UTC
Hi,
I wanted to put some "subfields" in the right region but found it was not possible with the current code (maybe I missed that option ). But in fact it took 3 lines of code to make it possible ( was 2 before ), and I think this option can become quiet useful.
With that patch it's possible to do things like that:
function mycustom_module_form_alter(&$form, &$form_state, $form_id) {
...
$form["my_extra_field"]['#placement'] = array(
'region' => 'right',
'weight' => 3,
'has_required' => FALSE,
'hidden' => FALSE,
);
}
Things that become possible in hook_form_alter() with this:
| Comment | File | Size | Author |
|---|---|---|---|
| modules_assign_region.patch | 565 bytes | idflood |
Comments
Comment #1
pragnatek commentedGreat patch, thanks for contributing.
I'm finding this very useful as my node forms are already greatly altered by using the inline_registration module and other customisations.
Thanks.
Comment #2
bachbach commentedthanks for this great simple patch.
Is this will be committed ?