大家早上好,
我是德鲁帕尔的新人。我希望不要问一个愚蠢的问题。我正在使用Drupal 7,我需要为我的公司编辑一个由另一个开发人员开发的定制模块。这是一段我使用“主题”函数的代码。这段代码在"sites/all/modules/gestione_attivita_attivita/gestione_attivita_attivita.module"下面
function gestione_attivita_attivita_block_search_attivita($tipo_ricerca) {
$block['subject'] = "";
$ricerca = gestione_attivita_ricerca_fetchAll($tipo_ricerca);
$block['content'] = theme('ricerca_attivita', array(
'items' => $ricerca,
'tipo_ricerca' => $tipo_ricerca
));
return $block;
}我知道"ricerca_attivita"钩子应该存在于我的文件中。我一直在我的网站文件夹的所有文件中寻找类似"['ricerca_attivita'] = array("或类似单词或子单词的东西,但它并不存在。我唯一知道的是:
"sites/all/themes/customModuleOfmyCompany/templates"
有几个tpl文件,特别是一个叫做"ricerca_attivita.tpl.php"的文件,可以从主题函数接收数据,但我不知道这是怎么可能的。
我不知道是谁告诉主题调用转到另一个路径上的另一个文件夹,使用"ricerca_attivita.tpl.php“而不是foo.tpl.php。有人能帮我吗?
另一件事:
在包含/theme.inc和调试器下面,我有一个打印钩子信息:
array (
'template' => 'ricerca_attivita',
'path' => 'sites/all/themes/customtheme/templates',
'type' => 'theme_engine',
'theme path' => 'sites/all/themes/customtheme',
'preprocess functions' =>
array (
0 => 'template_preprocess',
1 => 'contextual_preprocess',
),
'process functions' =>
array (
0 => 'template_process',
1 => 'ctools_process',
2 => 'rdf_process',
),
)但我不知道那是谁申报的
发布于 2017-11-07 20:25:49
https://stackoverflow.com/questions/46969278
复制相似问题