You are here

function _mixitup_views_get_node_tids in MixItUp Views 7

Get all node taxonomy id.

Parameters

int $nid: Node id.

Return value

array Array of tids.

1 call to _mixitup_views_get_node_tids()
mixitup_views_get_rows_classes in ./mixitup_views.module
Get classes string for node.

File

./mixitup_views.module, line 248
Provides a Views style plugin for displaying content with Mixitup filtering.

Code

function _mixitup_views_get_node_tids($nid) {
  $tids = db_select('taxonomy_index', 'ti')
    ->fields('ti', array(
    'tid',
    'nid',
  ))
    ->condition('ti.nid', $nid)
    ->execute()
    ->fetchAllKeyed();
  return array_keys($tids);
}