You are here

function lingotek_grid_search_options in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.6 lingotek.bulk_grid.inc \lingotek_grid_search_options()
1 call to lingotek_grid_search_options()
lingotek_bulk_grid_form in ./lingotek.bulk_grid.inc

File

./lingotek.bulk_grid.inc, line 412

Code

function lingotek_grid_search_options($entity_type) {
  if ($entity_type === 'paragraphs_item') {
    $title_str = 'Parent Node Title';
  }
  else {
    $title_str = 'Title';
  }
  $search_options = array(
    'title' => t($title_str),
  );
  if ($entity_type != 'fieldable_panels_pane' && $entity_type != 'paragraphs_item') {
    $search_options['all'] = t('All');
    $search_options['body'] = t('Body');
  }
  return $search_options;
}