function theme_panels_common_context_item_row in Panels 5.2
Same name and namespace in other branches
- 6.2 includes/common-context.inc \theme_panels_common_context_item_row()
Theme the form item for the context entry.
3 theme calls to theme_panels_common_context_item_row()
- panels_common_ajax_context_item_add in includes/
common.inc - Ajax entry point to add an context
- panels_common_ajax_context_item_edit in includes/
common.inc - Ajax entry point to edit an item
- theme_panels_common_context_item_form in includes/
common.inc - Add the contexts form to panel page settings
File
- includes/
common.inc, line 803 - Functions used by more than one panels client module.
Code
function theme_panels_common_context_item_row($type, $form, $position, $count, $with_tr = TRUE) {
$output = '<td class="title"> ' . drupal_render($form['title']) . '</td>';
$output .= '<td class="operation">' . drupal_render($form['settings']);
$type_info = panels_common_context_info($type);
if (!empty($type_info['sortable'])) {
$output .= drupal_render($form['up']) . drupal_render($form['down']);
}
$output .= drupal_render($form['remove']) . '</td>';
if ($with_tr) {
$output = '<tr id="' . $type . '-row-' . $position . '" class="' . $type . '-row ' . ($count % 2 ? 'even' : 'odd') . '">' . $output . '</tr>';
}
return $output;
}