passing $args to public_head method

I'm trying to pass a custom $arg to public_head like so:

public function hookPublicHead($args)
    if($args->map_type == 1) {

However I'm unsure how to pass in a custom $arg. Does anyone have any idea how to do this?



The only way to change the args passed in is to modify your theme's common/header.php file to change the array passed when the hook is fired:

<?php fire_plugin_hook('public_head', array('view'=>$this)); ?>

But, as soon as you are modifying the header file, you're probably better off just adding the css and js directly there instead of using the hook.