function view_custom_table_load_custom_table_views in Views Custom Table 7
Function to load all views created by a spesific table.
2 calls to view_custom_table_load_custom_table_views()
- view_custom_table_custom_tables_views in ./
view_custom_table.admin.inc - Function to display all views used by a custom table.
- view_custom_table_custom_table_update_relations_form in ./
view_custom_table.admin.inc - Function to update custom table relations.
File
- ./
view_custom_table.module, line 304 - view_custom_table.module
Code
function view_custom_table_load_custom_table_views($table_name = NULL) {
$query = db_select('views_view', 'v')
->fields('v', array(
'name',
'human_name',
'vid',
'description',
))
->condition('base_table', $table_name);
$views_info = $query
->execute()
->fetchAll();
return $views_info;
}