You are here

function _data_ui_get_join in Data 6

Same name and namespace in other branches
  1. 7 data_ui/data_ui.admin.inc \_data_ui_get_join()

Helper function to get link information for a specific field.

2 calls to _data_ui_get_join()
data_ui_edit_form in data_ui/data_ui.admin.inc
Form callback for editing a table.
data_ui_join_form in data_ui/data_ui.admin.inc
Join form.

File

data_ui/data_ui.admin.inc, line 1034
Admin UI functions.

Code

function _data_ui_get_join($join, $field) {
  if (is_array($join)) {
    foreach ($join as $left_table => $info) {
      if ($info['field'] == $field) {
        $info['left_table'] = $left_table;
        return $info;
      }
    }
  }
  return FALSE;
}