You are here

function theme_custom_pub_edit_form in Custom Publishing Options 7

Same name and namespace in other branches
  1. 6 theme.inc \theme_custom_pub_edit_form()

Return markup for the edit form.

File

./theme.inc, line 10
Theme functions for Custom Publishing Options.

Code

function theme_custom_pub_edit_form($vars) {
  $form = $vars['form'];
  $type = $form['type']['#value'];
  $head = array(
    t('Label'),
    t('Machine Name'),
    t('Node Types'),
    array(
      'data' => '',
      'class' => array(
        'close-custom-pub-table',
      ),
    ),
  );
  $rows = array(
    array(
      drupal_render($form['state']),
      $type['type'] . drupal_render($form['stateh']),
      drupal_render($form['node_types']),
      drupal_render_children($form),
    ),
  );
  $title = t('Edit ' . $type['name'] . ' option');
  $tvars = array(
    'header' => $head,
    'rows' => $rows,
    'caption' => $title,
  );
  return theme('table', $tvars);
}