Skip to main content
1 of 2
Clive
  • 168.4k
  • 19
  • 305
  • 338

You're not loading a node there, you're loading an entity of type entity_synclist. Its bundle key might be type, but it depends on what's defined in the module's implementation of hook_entity_info().

To be sure, you can get that information from the entity definition and use it to get the bundle like so:

$info = entity_get_info('entity_synclist'); $bundle_key = $info['entity keys']['bundle']; $synclist = entity_load_single('entity_synclist', $qid); $bundle = $synclist->{$bundle_key}; 
Clive
  • 168.4k
  • 19
  • 305
  • 338