function theme_ctools_context_item_row in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/context.theme.inc \theme_ctools_context_item_row()
Theme the form item for the context entry.
3 theme calls to theme_ctools_context_item_row()
- ctools_context_ajax_item_add in includes/
context-admin.inc - Ajax entry point to add an context
- ctools_context_ajax_item_edit in includes/
context-admin.inc - Ajax entry point to edit an item
- theme_ctools_context_item_form in includes/
context.theme.inc - Display the context item.
File
- includes/
context.theme.inc, line 39 - Contains theme registry and theme implementations for the context tool.
Code
function theme_ctools_context_item_row($type, $form, $position, $count, $with_tr = TRUE) {
$output = '<td class="title"> ' . drupal_render($form['title']) . '</td>';
if (!empty($form['position'])) {
$output .= '<td class="position"> ' . drupal_render($form['position']) . '</td>';
}
$output .= '<td class="operation">' . drupal_render($form['settings']);
$output .= drupal_render($form['remove']) . '</td>';
if ($with_tr) {
$output = '<tr id="' . $type . '-row-' . $position . '" class="draggable ' . $type . '-row ' . ($count % 2 ? 'even' : 'odd') . '">' . $output . '</tr>';
}
return $output;
}