You are here

function theme_panels_common_context_item_row in Panels 6.2

Same name and namespace in other branches
  1. 5.2 includes/common.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_ajax_context_item_add in includes/common-context.inc
Ajax entry point to add an context
panels_ajax_context_item_edit in includes/common-context.inc
Ajax entry point to edit an item
theme_panels_common_context_item_form in includes/common-context.inc
Add the contexts form to panel page settings

File

includes/common-context.inc, line 283
includes/common-context.inc Provide API for adding contexts for modules that embed displays.

Code

function theme_panels_common_context_item_row($type, $form, $position, $count, $with_tr = TRUE) {
  $output = '<td class="title">&nbsp;' . drupal_render($form['title']) . '</td>';
  if (!empty($form['position'])) {
    $output .= '<td class="position">&nbsp;' . 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;
}