Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
35
modules/node_clone/views/clone.views.inc
Normal file
35
modules/node_clone/views/clone.views.inc
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Views settings for Node_Clone module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implementation of hook_views_handlers()
|
||||
*/
|
||||
function clone_views_handlers() {
|
||||
return array(
|
||||
'info' => array(
|
||||
'path' => drupal_get_path('module', 'clone') . '/views',
|
||||
),
|
||||
'handlers' => array(
|
||||
'views_handler_field_node_link_clone' => array(
|
||||
'parent' => 'views_handler_field_node_link',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_views_data_alter()
|
||||
*/
|
||||
function clone_views_data_alter(&$views_data) {
|
||||
$views_data['node']['clone_node'] = array(
|
||||
'field' => array(
|
||||
'title' => t('Clone link'),
|
||||
'help' => t('Provide a simple link to clone the node.'),
|
||||
'handler' => 'views_handler_field_node_link_clone',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in a new issue