I know enough D7 to be dangerous. I'm stumped, however, as to how to call one module from another. In this case, I want to call the simplenews module's subscribe_user hook from a custom module I'm creating. I'm having difficulty passing the multiple arguments either as a string or an array. Here are the variables the hook accepts:
$mail = 'firstname.lastname@example.org'; $tid = 1; $confirm = TRUE; $source = 'unknown'; $preferred_language = NULL;
Can someone please help me call this properly?
module_invoke('simplenews', 'subscribe_user', $args);