【发布时间】:2013-02-11 08:56:03
【问题描述】:
我有一个生成输出页面的自定义模块,我的问题是关于如何将 html 元素添加到输出中,例如标题和段落等。
我的模块如下
function mymodule_page() {
$output .= '<h3>'.t('Installs '.$cell).'</h3>';
$output .= theme('flot_graph', $graph1);
return $output;
}
这是正确的做法吗?
第二行应该改为这样吗?
$output .= t('<h3>Installs '.$cell.'</h3>');
【问题讨论】:
标签: drupal drupal-7 drupal-modules drupal-themes