Custom node actions/ I have a view which is rendered as a table, the last column is labeled "actions" which I display both the "Edit" and "Delete" links accordingly.

I need to implement a few more custom operations, I found this as a starting point:

Custom entity operation links

Here is what I have thus far:

module.module

&lt;?php
  function module_views_api() {
    return array(
      'api' =&gt; 3,
      'path' =&gt; drupal_get_path('module', 'module') . '/views',
    );
  }


module.info

files[] = views/module.views.inc
files[] = views/module_handler_print.inc


module.views.inc

&lt;?php

  function module_views_data() {
    $data = array();
    $data['node']['print'] = array(
      'title' =&gt; t('Print link'),
      'help' =&gt; t('Provide a simple link to print the content.'),
      'field' =&gt; array(
        'handler' =&gt; 'module_handler_print',
      ),
    );

    return $data;
  }


module_handler_print.inc

&lt;?php
  class views_handler_field_node_link_print extends views_handler_field_node_link {

    function render_link($node, $values) {
      // Ensure user has access to edit this node.
      if (!node_access('update', $node)) {
        return;
      }

      $this-&gt;options['alter']['make_link'] = TRUE;
      $this-&gt;options['alter']['path'] = "node/$node-&gt;nid/print";
      $this-&gt;options['alter']['query'] = drupal_get_destination();

      $text = !empty($this-&gt;options['text']) ? $this-&gt;options['text'] : t('print');

      return $text;
    }

  }


I can see the option when adding the field to VIEWS but when I select it I get the error:


  Configure field: Broken/missing handler


Any ideas???
You can try this module: https://www.drupal.org/project/ccl

or create your custom solution based on this code snippet