ref->type == 'site' && $task->task_type == 'install') { $client = node_load($task->ref->client); $task->options['client_id'] = $task->ref->client; $task->options['client_email'] = $client->email; } }