You are here

function theme_asset_wizard_theme_form in Asset 5

Same name and namespace in other branches
  1. 6 inc/asset.themes.inc \theme_asset_wizard_theme_form()

Theme the wizard theme selection table.

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

File

./asset.module, line 1043

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);
}