Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created November 19, 2012 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitaibu/4109877 to your computer and use it in GitHub Desktop.
Save amitaibu/4109877 to your computer and use it in GitHub Desktop.
foreach ($item_variations as $item_variation) {
$nid = $item_variation->nid;
$form[$nid] = array(
'#markup' => check_plain($item_variation->title);
);
foreach ($types as $type) {
$form[$nid][$type] = array(
'#markup' => check_plain($label);
);
foreach ($sizes as $size) {
$form[$nid][$type][$size] = array(
'#type' => 'textfield',
'#element_validate' => 'integer',
'#default_value',
);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment