All pastes #493031 Raw Edit

tonkeht

public text v1 · immutable
·published 2007-05-17 15:42 UTC
rendered paste body
<?php

  $details .= drupal_render($form['title']);
  $details .= drupal_render($form['field_got_a_road_map_to_share']);
  $details .= drupal_render($form['field_admin_youtube_field']);

  $roads .= drupal_render($form['field_roads']);
  $roads .= drupal_render($form['field_youtube_video_upload_your']);

  $places .= drupal_render($form['field_places']);
  $places .= drupal_render($form['field_youtube_video_upload_yo_0']);

  $people .= drupal_render($form['field_people']);
  $people .= drupal_render($form['field_youtube_video_upload_yo_1']);

  $submit = drupal_render($form);


  $tabs = array();

  $tabs['myride'] = array(
    '#type' => 'tabset',
  );
  $tabs['myride']['details'] = array(
    '#type' => 'tabpage',
    '#title' => t('MyRide'),
    '#content' => $details,
  );
  $tabs['myride']['roads'] = array(
    '#type' => 'tabpage',
    '#title' => t('Cool Roads'),
    '#content' => $roads,
  );
  $tabs['myride']['places'] = array(
    '#type' => 'tabpage',
    '#title' => t('Cool Places'),
    '#content' => $places,
  );
  $tabs['myride']['people'] = array(
    '#type' => 'tabpage',
    '#title' => t('Cool People'),
    '#content' => $people,
  );
  $tabs['myride']['submit'] = array(
    '#type' => 'tabpage',
    '#title' => t('Submit'),
    '#content' => $submit,
  );

  print tabs_render($tabs);
?>