I have built hook_themes many times and never encountered this before but I am getting the following errors:
Warning: Missing argument 1 for geocoder_custom_theme Warning: Missing argument 2 for geocoder_custom_theme Warning: Missing argument 3 for geocoder_custom_theme Warning: Missing argument 4 for geocoder_custom_theme Warning: Illegal offset type in isset or empty in drupal_theme_access() line 53
I have tried clearing cache, renaming the hook, registry rebuild and nothing works. I have another hook_theme in a different custom module that is basically the same thing but works completely fine. Also if i simply return an empty array() it still does it. Its like drupal doesn't send any values to my hook for whatever reason.
Code:
function geocoder_custom_theme($existing, $type, $theme, $path)
{
return array(
'geocoder_custom_before_me' => array(
'variables' => array('string' => array()),
'template' => 'geocoder-before',
'path' => drupal_get_path('module', 'geocoder_custom') . '/theme'
),
'geocoder_custom_after_me' => array(
'variables' => array('string' => array()),
'template' => 'geocoder-after',
'path' => drupal_get_path('module', 'geocoder_custom') . '/theme'
)
);
}