Revision d259fad0
Added by Andreas Kohlbecker almost 3 years ago
modules/cdm_dataportal/ext_links/ext_links.admin.inc | ||
---|---|---|
23 | 23 |
$form['link_templates'][$id]['glue'] = array('#markup' => check_plain($link_template->glue)); |
24 | 24 |
$form['link_templates'][$id]['category'] = array('#markup' => check_plain($link_template->category)); |
25 | 25 |
$form['link_templates'][$id]['configure'] = array('#type' => 'link', '#title' => t('configure'), '#href' => 'admin/config/cdm_dataportal/ext_links/' . $link_template->id); |
26 |
$form['link_templates'][$id]['status'] = array('#type' => 'link', |
|
27 |
'#title' => $link_template->status == 1 ? t('disable') : t('enable'), |
|
28 |
'#href' => 'admin/config/cdm_dataportal/ext_links/' . $link_template->id . '/status/' . ($link_template->status == 1 ? '0' : '1')); |
|
26 | 29 |
$form['link_templates'][$id]['weight'] = array( |
27 | 30 |
'#type' => 'weight', |
28 | 31 |
'#title' => t('Weight for @title', array('@title' => $link_template->id)), |
... | ... | |
219 | 222 |
drupal_render($form['link_templates'][$id]['glue']), |
220 | 223 |
drupal_render($form['link_templates'][$id]['category']), |
221 | 224 |
drupal_render($form['link_templates'][$id]['weight']), |
222 |
drupal_render($form['link_templates'][$id]['configure']) |
|
225 |
drupal_render($form['link_templates'][$id]['configure']), |
|
226 |
drupal_render($form['link_templates'][$id]['status']), |
|
223 | 227 |
), |
224 | 228 |
'class' => $row_class_attributes, |
225 | 229 |
); |
226 | 230 |
} |
227 |
$header = array(t('Title'), t('Link'), t('Glue'), t('Category'), t('Weight'), array('data' => t('Operations'), 'colspan' => 1));
|
|
231 |
$header = array(t('Title'), t('Link'), t('Glue'), t('Category'), t('Weight'), array('data' => t('Operations'), 'colspan' => 2));
|
|
228 | 232 |
$output = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'text-format-order'))); |
229 | 233 |
$output .= drupal_render_children($form); |
230 | 234 |
|
Also available in: Unified diff
ref #9659 adding enable/disable operation again