function list_build_row($profile, &$form_state, $operations) { parent::list_build_row($profile, $form_state, $operations); $name = $profile->name; $row_data =& $this->rows[$name]['data']; // We want the operations last so remove it now, add our stuff and add it // again later when we're done. $operations = array_pop($row_data); $row_data[]['data'] = check_plain($profile->config['search_request']['search_well_profile']); $row_data[]['data'] = check_plain($profile->config['search_request']['query']); $row_data[]['data'] = $profile->config['user_interaction']['exposed'] ? t('Yes') : t('No'); $row_data[]['data'] = $profile->weight; $row_data[] = $operations; // Prepare for the sorting (the parent handles name and title). $weight = $profile->weight; $exposed = $profile->config['user_interaction']['exposed']; switch ($form_state['values']['order']) { case 'weight': $this->sorts[$name] = $weight; break; case 'exposed': $this->sorts[$name] = $exposed; break; } }
function list_build_row($item, &$form_state, $operations) { parent::list_build_row($item, $form_state, $operations); // Set up additional sorting for Label and Category. switch ($form_state['values']['order']) { case 'label': $this->sorts[$item->name] = $item->label; break; case 'category': $this->sorts[$item->name] = ($item->category ? $item->category : t('Miscellaneous')) . $item->label; break; } // Add an additional Category column after the first two columns. $category = $item->category ? check_plain($item->category) : t('Miscellaneous'); $column = array(array('data' => $category, 'class' => array('ctools-export-ui-category'))); array_splice($this->rows[$item->name]['data'], 2, 0, $column); }
/** * Overrides ctools_export_ui::list_build_row(). */ function list_build_row($item, &$form_state, $operations) { parent::list_build_row($item, $form_state, $operations); }
/** * Overrides parent::list_build_row. */ public function list_build_row($item, &$form_state, $operations) { parent::list_build_row($item, $form_state, $operations); $name = $item->{$this->plugin['export']['key']}; $skins = slick_skins(); $breakpoints = $this->items[$name]->breakpoints ? $this->items[$name]->breakpoints : 0; $skin = $this->items[$name]->skin; $skin_name = $skin ? check_plain($skin) : t('None'); if ($skin) { $description = isset($skins[$skin]['description']) && $skins[$skin]['description'] ? filter_xss_admin($skins[$skin]['description']) : ''; if ($description) { $skin_name .= '<br /><em>' . $description . '</em>'; } } $breakpoints_row[] = array('data' => $breakpoints, 'class' => array('ctools-export-ui-breakpoints')); array_splice($this->rows[$name]['data'], 2, 0, $breakpoints_row); $skin_row[] = array('data' => $skin_name, 'class' => array('ctools-export-ui-skin'), 'style' => "white-space: normal; word-wrap: break-word; max-width: 320px;"); array_splice($this->rows[$name]['data'], 3, 0, $skin_row); }