clone.views.inc 393 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @file
  4. * Views settings for Node_Clone module.
  5. */
  6. /**
  7. * Implements hook_views_data_alter()
  8. */
  9. function clone_views_data_alter(&$views_data) {
  10. $views_data['node']['clone_node'] = array(
  11. 'field' => array(
  12. 'title' => t('Clone link'),
  13. 'help' => t('Provide a simple link to clone the node.'),
  14. 'handler' => 'views_handler_field_node_link_clone',
  15. ),
  16. );
  17. }