getModuleData($id) pulls module data from the db based on the modules ID number then returns an array of that data.
Parameter: $id - the id of the module for which we are pulling data.
Location: model.sodapop.php
public function getModuleData($id) {
$query = " select *
from modules
where id = '$id'";
$result = $this->getData($query);
while ($row= mysql_fetch_array($result, MYSQL_ASSOC)) {
$moduleData['id'] = $row['id'];
$moduleData['name'] = $row['name'];
$moduleData['positions'] = $row['positions'];
$moduleData['pages'] = $row['pages'];
$moduleData['hidden'] = $row['hidden'];
$moduleData['params'] = $row['params'];
$moduleData['ordering'] = $row['ordering'];
$moduleData['active'] = $row['active'];
}
return $moduleData;
}