How to override views-view-field.tpl.php in custom module? I am trying to override views-view-field.tpl.php in my custom module as suggested in override views-view-fields.tpl.php in custom module but looks like it's syntaxes are old.

My codes are like:

In mymodule.info

 ; $Id$

  name = My Module
  description = Create custom views template.
  package = Views
  dependencies[] = views
  core = 7.x

  files[] = mymodule.module
  files[] = includes/mymodule.views.inc

 ; Information added by drupal.org packaging script on 2011-07-21
  version = "7.x-4.1"
  core = "7.x"
  project = "mymodule"
  datestamp = "1311290520"


In mymodule.module

function mymodule_views_api() {
  return array(
   'api' =&gt; 3.0,
   'path' =&gt; drupal_get_path('module', 'mymodule') . '/includes',

   );
 }


function mymodule_theme($existing, $type, $theme, $path) 
  {

   return array(
    'views_view_field__views__ticker' =&gt; array(
    'variables' =&gt; array('view' =&gt; NULL, 'options' =&gt; NULL,'row' =&gt;NULL),
    'template' =&gt; 'views-view-field--views--ticker',
    'base hook' =&gt; 'views_view_field',
    'path' =&gt; drupal_get_path('module', 'mymodule') . '/includes',

         ),
       );
    }


In /mymodule/includes/mymodule.views.inc

  function theme_views_view_field__views__ticker($vars) {

    $view = $vars['view'];
    $field = $vars['field'];
    $row = $vars['row'];

    return $vars['output'];
   }

  function template_preprocess_views_view_field__views__ticker(&amp;$vars)       
   {

    $vars['output'] = $vars['field']-&gt;advanced_render($vars['row']);
   }


My custom template file views-view-field--views--ticker.tpl.php in /mymodule/includes

 &lt;?php print $output; ?&gt;


Problem: it is not overriding views-view-field.tpl.php

I am using drupal version 7.41
You should add the template file on your module info file:

name = My Module
description = Create custom views template.
package = Views
dependencies[] = views
core = 7.x

files[] = mymodule.module
files[] = includes/mymodule.views.inc
files[] = includes/views-view-field--views--ticker.tpl.php

version = "7.x-4.1"
core = "7.x"
project = "mymodule"
datestamp = "1311290520"