You are here

function nodeformscols_field_placements in Node form columns 7

4 calls to nodeformscols_field_placements()
nodeformcols_configuration_form in ./nodeformcols.admin.inc
nodeformcols_configuration_form_submit in ./nodeformcols.admin.inc
nodeformcols_form_alter in ./nodeformcols.module
Implementation of hook_form_alter().
template_preprocess_node_form in ./nodeformcols.module
Preprocess function to run ahead of other modules.

File

./nodeformcols.module, line 73

Code

function nodeformscols_field_placements($content_type, $variant) {
  $default = _nodeformscols_default_field_placements();
  if ($variant != 'default') {
    $default = variable_get('nodeformscols_field_placements_' . $content_type . '_default', $default);
  }
  $placements = variable_get('nodeformscols_field_placements_' . $content_type . '_' . $variant, $default);
  return $placements;
}