You are here

function theme_deploy_list in Deploy - Content Staging 5

theme the deploy plan items form some drag-and-dropification would be nice here

File

./deploy.module, line 402

Code

function theme_deploy_list($form) {
  $header = array(
    t('Module'),
    t('Description'),
    t('Added by'),
    t('Weight'),
    t('Operations'),
  );
  $rows = array();
  foreach (element_children($form) as $i) {
    $item =& $form[$i];
    if (is_array($item['module'])) {
      $rows[] = array(
        drupal_render($item['module']),
        drupal_render($item['description']),
        drupal_render($item['added_by']),
        drupal_render($item['weight']),
        l(t('Delete'), 'admin/build/deploy/delete/item/' . $item['iid']['#value']),
      );
    }
  }
  $output = theme('table', $header, $rows, array(
    'id' => 'plans',
  ));
  $output .= drupal_render($form);
  return $output;
}