You are here

function theme_workflow_actions_form in Workflow 5

File

./workflow.module, line 1409

Code

function theme_workflow_actions_form($form) {
  $row = array();

  // put each existing action and remove link on it's own row
  foreach (element_children($form['remove']) as $key) {
    $name = $form['remove'][$key]['#title'];
    unset($form['remove'][$key]['#title']);
    $row[] = array(
      $name,
      drupal_render($form['remove'][$key]),
    );
  }

  // and if there are form items for a "new" action put that on a row
  if (isset($form['action'])) {
    $row[] = array(
      drupal_render($form['action']),
      drupal_render($form['submit']),
    );
  }
  $output .= theme('table', array(), $row);
  return $output . drupal_render($form);
}