You are here

function theme_asset_wizard_theme_form in Asset 6

Same name and namespace in other branches
  1. 5 asset.module \theme_asset_wizard_theme_form()

Theme the wizard theme selection table.

1 theme call to theme_asset_wizard_theme_form()
asset_admin_settings in inc/asset.admin.inc
Admin Settings

File

inc/asset.themes.inc, line 22

Code

function theme_asset_wizard_theme_form($form) {
  foreach (element_children($form) as $filename) {
    if (file_exists(dirname($filename) . '/asset_wizard.png')) {
      $screenshot = theme('image', dirname($filename) . '/asset_wizard.png');
    }
    else {
      $screenshot = 'No screenshot available';
    }
    $rows[] = array(
      $screenshot,
      '<strong>' . basename(dirname($filename)) . '</strong><br/>' . $filename,
      drupal_render($form[$filename]),
    );
  }
  return theme('table', array(
    t('Screenshot'),
    t('Name'),
    '',
  ), $rows);
}