private function included_modules_text($module) { $text = ''; if ($module['needed_modules']) { $text .= __('With this module you also need some other modules.') . '<br>' . __('Here is the list of what you will buy:'); $arr = array($module['name'] => $module['price']); if (!is_array($module['required_modules'])) { $module['required_modules'] = explode(', ', $module['required_modules']); } foreach ($module['needed_modules'] as $rm_id) { $mod = Base_EpesiStoreCommon::get_module_info_cached($rm_id); $arr[$mod['name']] = $mod['price']; } $text .= "<table class=\"price_summary\">"; foreach ($arr as $name => $price) { $text .= "<tr><td>{$name}</td><td>{$price}</td></tr>"; } $text .= "</table>"; } return $text; }