Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.
我们可以建立自己的登录表单,从而确保输入表单元素使用正确的值来触发 drupal 身份验证系统。
we could have crafted our own login form, making sure the input form elements used the correct values to trigger the drupal authentication system.
drupal 6版升级至drupal 7还有助于作出反应性的设计,以适应不同的屏幕尺寸和设备显示,例如在智能手机和平板电脑上。
the upgrade from drupal 6 to drupal 7 also allowed for a responsive design that adapts to different screen sizes and device displays, for example on smartphones or tablets.
如 清单 19 所示,向 drupal 菜单系统注册了 url /compliance ,从而触发 compliance_display 函数。
as shown in listing 19, the url /compliance is registered with the drupal menu system to trigger the compliance_display function.
最初,我们实现了一种解决方案,它在属于 drupal 核心的 session.inc 文件中添加代码,这使我们能够在 http 请求周期的早期添加钩子,从而在预定义的无活动时间段之后影响用户会话。
initially, we implemented a solution where we added code to the session.inc file, part of the drupal core, so we could hook into the http request cycle early enough to affect the user session after the predefined amount of time of inactivity.
使用 drupal_get_form 函数和表单 id ( compliance_ack )让 drupal 寻找与这个表单 id 相关联的提交和检验钩子函数。
the use of the drupal_get_form function with the form id, compliance_ack, tells drupal to look for the submit and validate hook functions connected to this form id.
在提交表单之后,drupal 将键 alert_text 和与这个表单元素相关联的值串在一起,并使用 autologout 作为名称字段,串在一起的键 / 值对作为值字段,从而在变量表中设置一个记录。
drupal will serialize the key alert_text and the value associated with that form item after submission and cut a record in the variable table using autologout for the name field and the serialized key/value pairs for the value field.