【发布时间】:2011-11-17 11:00:11
【问题描述】:
在 drupal 7 中安装模块期间如何更新表?我使用了以下代码。但它不起作用
function mymodule_install() {
drupal_install_schema('template_config');
db_update('system')
->fields(array(
'status' => 1,
))
->condtion('type','theme','=')
->execute();
}
这段代码有什么问题。我想在安装 mymodule 时启用所有主题。
【问题讨论】:
标签: php drupal drupal-7 drupal-modules drupal-theming