You are here

function fancy_file_delete_entity_info in Fancy File Delete 7

Implements hook_entity_info().

Add Unmanaged table as entity so we can use it with VBO.

File

./fancy_file_delete.module, line 82

Code

function fancy_file_delete_entity_info() {
  $info = array();
  $info['unmanaged_files'] = array(
    'label' => t('Unmanaged Files'),
    'base table' => 'unmanaged_files',
    'entity keys' => array(
      'id' => 'unfid',
      'label' => 'path',
    ),
    'module' => 'unmanaged_files',
  );
  return $info;
}