function tripal_is_lightest_priority_setup
2.x tripal_views.api.inc | tripal_is_lightest_priority_setup($setup_id, $table_name) |
3.x tripal_chado_views.api.inc | tripal_is_lightest_priority_setup($setup_id, $table_name) |
Checks if you are dealing with the lightest priority setup for a given table. This is a good way to determine whether your modules integration is being used by views.
Parameters
$setup_id: The ID of the setup to check (is this setup the lightest one?)
$table_name: The name of the table associated with this setup
Return value
TRUE is this is the lightest priority; FALSE otherwise
Related topics
2 calls to tripal_is_lightest_priority_setup()
- tripal_chado_views_is_lightest_priority_setup in tripal_chado_views/
api/ tripal_chado_views.DEPRECATED.inc - tripal_chado_views_views_data in tripal_chado_views/
tripal_chado_views.views.inc - Implements hook_views_data().
1 string reference to 'tripal_is_lightest_priority_setup'
- tripal_chado_views_is_lightest_priority_setup in tripal_chado_views/
api/ tripal_chado_views.DEPRECATED.inc
File
- tripal_chado_views/
api/ tripal_chado_views.api.inc, line 396 - Provides API functions that support direct integration of Chado tables with Drupal Views.
Code
function tripal_is_lightest_priority_setup($setup_id, $table_name) {
$lightest_priority_setup_id = tripal_get_lightest_views_integration_setup($table_name);
if ($lightest_priority_setup_id == $setup_id) {
return TRUE;
}
else {
return FALSE;
}
}