I'm trying to pass the title of the current node as an argument for a view block. I have the following specified in the argument text field:

$node = node_load(array('nid' => $nid));
$args[0] =  $node->title;
return $args;

But it doesn't seem to work. Help! If I hard code the title like this

$node = node_load(array('nid' => $nid));
$args[0] =  "Title Here";
return $args;

I get what I expect, so I'm guessing the first line is wrong somehow. I'm clueless as to what I need to change, though. Anyone want to shed some light on this issue for me?