function theme_alinks_list in Alinks 6
Same name and namespace in other branches
- 7 alinks.module \theme_alinks_list()
Theme function for the list of alinks
File
- ./
alinks.module, line 427
Code
function theme_alinks_list($form) {
//print_r($form);exit;
$header = array(
t('Start'),
t('String'),
t('End'),
t('Case'),
t('URL'),
t('URL title'),
t('External'),
t('Class'),
t('Weight'),
t('Delete'),
);
$rows = array();
foreach ($form['alinks']['#value'] as $id => $alink) {
$row = array();
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['start_boundary_edit']),
'align' => 'center',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['word_edit']),
'align' => 'left',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['end_boundary_edit']),
'align' => 'center',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['case_insensitive_edit']),
'align' => 'center',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['url_edit']),
'align' => 'left',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['url_title_edit']),
'align' => 'left',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['external_edit']),
'align' => 'center',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['class_edit']),
'align' => 'left',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['weight_edit']),
'align' => 'center',
);
$row[] = array(
'data' => drupal_render($form['edit_alink'][$alink['id']]['delete']),
'align' => 'center',
);
$rows[] = $row;
}
$output = theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}