The wurfl_theme function is present in the wurfl.admin.inc file, but it should be in the wurfl.module folder so Drupal actually sees it. Additionally, it needs to tell Drupal where to find the theme_wurfl_status function over in the wurfl.admin.inc file, so the 'file' array element needs to be added. Also, $items should probably be an array when you go to add elements to it.

Here's my version at the bottom on the wurfl.module

/**
 * Implementation of hook_theme
 */
function wurfl_theme($existing, $type, $theme, $path){
  $items= array(); //this is new
  $items['wurfl_status'] = array(
    'arguments' => array('message' => NULL, 'type' => "status"),
	'file' => 'wurfl.admin.inc', //this is also new
  );
  return $items;
}

Comments

ahaarnos’s picture

Title: wurfl_theme function in the wrong folder (and is missing an argument) » wurfl_theme function in the wrong file (and is missing an argument)
twom’s picture

Status: Active » Fixed

Thx,

I committed the fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.