You are here

function LinkitViewsPlugin::create_tmp_table in Linkit views 7.2

Created a temporary table.

1 call to LinkitViewsPlugin::create_tmp_table()
LinkitViewsPlugin::autocomplete_callback in plugins/linkit_plugins/linkit_views.class.php
The autocomplete callback function for the Linkit Entity plugin.

File

plugins/linkit_plugins/linkit_views.class.php, line 28

Class

LinkitViewsPlugin
Plugin class.

Code

function create_tmp_table() {

  // If this can be done in a more nice way, please tell me.
  $temp_table = 'CREATE TEMPORARY TABLE {' . $this->table_name . '} (human_name VARCHAR(255) NOT NULL, display_title VARCHAR(65) NOT NULL, path VARCHAR(255) NOT NULL)';
  return db_query($temp_table);
}