You are here

function flexslider_picture_join_callback in Picture 7

Same name and namespace in other branches
  1. 7.2 flexslider_picture/flexslider_picture.module \flexslider_picture_join_callback()

Join callback.

See also

flexslider_picture_schema_alter()

1 string reference to 'flexslider_picture_join_callback'
flexslider_picture_schema_alter in flexslider_picture/flexslider_picture.install
Implements hook_schema_alter().

File

flexslider_picture/flexslider_picture.module, line 178
Picture formatter with flexslider support.

Code

function flexslider_picture_join_callback(&$query, $schema, $join_schema) {
  $tables =& $query
    ->getTables();
  foreach ($tables as &$table) {
    if ($table['table'] == 'flexslider_picture_optionset') {
      $table['join type'] = 'LEFT OUTER';
      break;
    }
  }
}