Drupal不会在我的模块中为我的表单调用我的主题函数.
我在.module文件中添加了hook_theme,如下所示:
function agil_theme() {
return array(
'agil_list_form' => array(
'render element' => 'form',
),
);
}
Run Code Online (Sandbox Code Playgroud)
其中:
我想调用一个函数来创建我自己的标记,如下所示:
function theme_agil_list_form($form) {
$output = "<table><th><td></td><td>".t('Title')."</td><td>".t('Link')."</td></th>";
$output .= "<tr><td>";
$output .= drupal_render($form['name']);
...
Run Code Online (Sandbox Code Playgroud)
但是Drupal从来没有调用过这个函数......我清除了缓存但没有...
我在哪里想念什么?
我还读到了关于Drupal 7中新主题声明的内容:http: //drupal.org/update/modules/6/7#hook_theme_render_changes
有人能指出我在Matlab中进行实时网络摄像头处理的一些例子吗?有一些关于如何从网络摄像头获取图片的在线教程/示例,然后处理该图片,但我正在考虑从网络摄像头实时处理视频.