You are here

function om_node_tools in OM Tools 8.2

Same name and namespace in other branches
  1. 6.2 tools/node/node.inc \om_node_tools()
  2. 7.2 tools/node/node.inc \om_node_tools()

Node Tools Form

File

tools/node/node.inc, line 16
Node Tools

Code

function om_node_tools(&$form, $node_defaults = array()) {

  // Node Tools
  $node_tools = array();
  $node_tools['node_body_classes'] = array(
    '#type' => 'fieldset',
    '#title' => t('Node Body Classes'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $node_tools['node_body_classes'] += om_node_body_classes($node_defaults);
  $node_tools['node_terms_classes'] = array(
    '#type' => 'fieldset',
    '#title' => t('Node Terms Classes'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $node_tools['node_terms_classes'] += om_node_terms_classes($node_defaults);
  $node_tools['node_type_titles'] = array(
    '#type' => 'fieldset',
    '#title' => t('Node Type Titles'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $node_tools['node_type_titles'] += om_node_type_titles($node_defaults);
  $form['om_node_tools'] = array(
    '#type' => 'fieldset',
    '#title' => t('Node'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#description' => t(''),
  );
  $form['om_node_tools'] += $node_tools;
  return $form;
}