node_export_dependency.api.php 746 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Documents Node export dependency's hooks for api reference.
  5. */
  6. /**
  7. * Handle dependencies not already handled.
  8. *
  9. * Let other modules alter this - for example to only allow some users to
  10. * export specific nodes or types.
  11. *
  12. * @param &$handled
  13. * Boolean indicating whether the dependency was handled, only set to TRUE,
  14. * never explicitly set it to FALSE. Only run code when it is already FALSE.
  15. * @param $node
  16. * The node to handle the dependency for.
  17. * @param $dependency
  18. * The dependency data.
  19. */
  20. function hook_node_export_dependency_alter(&$handled, &$node, $dependency) {
  21. if (!$handled) {
  22. // Attempt to handle the dependency here.
  23. // If it's handled successfully set $handled to TRUE.
  24. }
  25. }