getDefaultTemplate() loads the template that is set as default in the templates table.
Location: model.sodapop.php
public function templateLookup() {
## Let's find out which template is set to default
$query = " select *
from templates
where dflt = '1'";
$result = $this->getData($query);
while ($row= mysql_fetch_array($result, MYSQL_ASSOC)) {
$template['name'] = $row['name'];
$template['id'] = $row['templateID'];
}
return $template;
}