Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @todo Please document this function.
- * @see http://drupal.org/node/1354
- */
- function theme_freeway_dashboard($variables) {
- $form = $variables['form'];
- drupal_add_js(drupal_get_path('module', 'freeway') . '/js/dashboardscript.js');
- global $user;
- $rows = array();
- foreach (element_children($form) as $key) {
- $row = array();
- if (isset($form[$key]['projectID'])) {
- $status = drupal_render($form['featured'][$key]);
- $row[] = array('data' => l(drupal_render($form[$key]['projectID']), 'user/' . $user->uid . '/freewayDashboardDetails', array('query' => array('project_id' => $form[$key]['projectID']['#value']))));
- $row[] = array('data' => drupal_render($form[$key]['projectDesc']));
- $row[] = array('data' => drupal_render($form[$key]['projectStatusCode']));
- $rows[] = $row;
- l(t('Title'), $url, array('attributes' => array('target' => '_blank')));
- }
- }
- $header = array();
- $header[] = t('Project ID');
- $header[] = t('Project Description');
- $header[] = t('Project Status');
- $output = '<div class="table_overflow">' . theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('size' => 10, 'class' => array('table_class')))) . '</div>';
- $output .= drupal_render_children($form);
- return $output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement