You are here

function _entity_translation_callback in Entity Translation 7

Helper function. Proxies a callback call including any needed file.

4 calls to _entity_translation_callback()
entity_translation_add_access in ./entity_translation.module
Access callback.
entity_translation_add_page in ./entity_translation.module
Page callback.
entity_translation_edit_access in ./entity_translation.module
Access callback.
entity_translation_edit_page in ./entity_translation.module
Page callback.

File

./entity_translation.module, line 717

Code

function _entity_translation_callback($callback, $args, $info = array()) {
  if (isset($info['file'])) {
    $path = isset($info['file path']) ? $info['file path'] : drupal_get_path('module', $info['module']);
    include_once DRUPAL_ROOT . '/' . $path . '/' . $info['file'];
  }
  return call_user_func_array($callback, $args);
}