$types) { foreach($types as $type => $files) { if ($type != 'theme') { foreach($types[$type] as $file => $preprocess) { $styles .= '' ."\n"; } } } } $scripts = drupal_get_js(); $head = drupal_get_html_head(); $messages = theme('status_messages'); return << $title $head $styles $scripts

$title

$messages
$content
POPUP; } /** * Main theme function for asset_wizard_form. */ function theme_asset_wizard_form($form, $main_class = NULL) { $footer = ''; $help = ($form['help'] ? '
'.drupal_render($form['help']).'
' : ''); $toolbar = '
' . asset_wizard_toolbar($form['parent']['#value']) .'
'; //$location = '
' . asset_wizard_location_bar($form['parent']['#value']) .'
'; $messages = theme('status_messages'); $main = '
'.$messages.$help.drupal_render($form).'
'; return $toolbar.$main.$footer; } /** * Theme function for the selection step of the wizard. */ function theme_asset_wizard_selection_form($form) { // $output .= '
' . drupal_render($form['toolbar']) . '
'; $output .= '
' . drupal_render($form['dir_crumb']) . '
'; $output .= '
' . drupal_render($form['folder_list']) . drupal_render($form['aid']) . drupal_render($form['asset_preview']) . '
'; $form[] = array('#value' => $output, '#weight' => -10); return theme('asset_wizard_form', $form, 'asset-selection-form'); } /** * Simple function */ function theme_asset_image_button($element) { // Make sure not to overwrite classes. $element['#button_type'] = 'image'; if (isset($element['#attributes']['class'])) { $element['#attributes']['class'] = 'form-'. $element['#button_type'] .' '. $element['#attributes']['class']; } else { $element['#attributes']['class'] = 'form-'. $element['#button_type']; } return '\n"; } /** * Theme function for the permissions field. */ function theme_asset_upload_permissions($element) { $roles = db_query("SELECT rid, status FROM {asset_role} WHERE aid=%d", $element['status']['#post']['aid']); while($role = db_fetch_object($roles)) { if ($role->status) { $element['roles'][$role->rid]['#value'] = $role->rid; } } $roles = drupal_render($element['roles']); $element['status'][ASSET_PRIVATE]['#suffix'] = '
' . $roles . '
'; $element['status'][ASSET_PRIVATE]['#id'] = 'permissions-private'; $element['status'][ASSET_PUBLIC]['#id'] = 'permissions-public'; return drupal_render($element); } ?>