You are here

function theme_custom_pub_edit_form in Custom Publishing Options 6

Same name and namespace in other branches
  1. 7 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($form) {
  $type = $form['type']['#value'];
  $head = array(
    t('Label'),
    t('Machine Name'),
    t('Node Types'),
    array(
      'data' => '',
      'class' => 'close-custom-pub-table',
    ),
  );
  $rows = array(
    array(
      drupal_render($form['state']),
      $type['type'] . drupal_render($form['stateh']),
      drupal_render($form['node_types']),
      drupal_render($form),
    ),
  );
  $title = t('Edit @type option', array(
    '@type' => $type['name'],
  ));
  return theme('table', $head, $rows, NULL, $title);
}