Drupal Module – Location bug
来源:互联网 发布:淘宝药房 编辑:程序博客网 时间:2024/05/01 22:09
在使用Location Module时,当我不收集Addition field时却始终显示,解决办法见:
Additional - do not collect doesn't respect setting
--- location.module2009-04-17 12:12:54.000000000 -0700+++ location.module2009-05-22 00:28:53.000000000 -0700@@ -259,14 +259,14 @@ function _location_expand_location($elem $element[$field] = location_invoke_locationapi($fdefaults[$field], 'field_expand', $field, $fsettings[$field]['collect'], $fdefaults); $element[$field]['#weight'] = (int)$fsettings[$field]['weight']; }-- // Only include 'Street Additional' if 'Street' is 'allowed' or 'required'- if ($field == 'street' && $fsettings[$field]['collect']) {- $element['additional'] = location_invoke_locationapi($defaults['additional'], 'field_expand', 'additional', 1, $defaults);- $element['additional']['#weight'] = (int)$fsettings['additional']['weight'];- } } }+ + // Only include 'Street Additional' if 'Street' is 'allowed' or 'required'+ if (!isset($element['street'])) {+ unset($element['additional']);+ }+ // @@@ Split into submit and view permissions? if (user_access('submit latitude/longitude') && $fsettings['locpick']['collect']) { $element['locpick'] = array('#weight' => $fsettings['locpick']['weight']);
- Drupal Module – Location bug
- Drupal Module - Location
- Drupal Module – PNG Fix
- Drupal – Cumulus Cloud Module
- Drupal Module – View Bonus
- Drupal Module – View slideshow ddblock
- Drupal Module - Gmap
- Drupal Module - Rules
- Drupal Module - imagefield
- Drupal Module - Taxonomy redirect
- drupal一些module
- Drupal search module
- drupal useful addition module
- drupal install module
- Learning Drupal 6 Module Development
- Drupal Module - SMTP Authentication Support
- Drupal Module - Taxonomy Access Control
- Drupal Module – Taxonomy Menu
- Direct vs non-direct ByteBuffer
- 20100303——Intel电面
- UVa 591 - Box of Bricks
- VB sytem32/ieframe.dll找不到的解决方案
- 【通信】AAA以及相关协议
- Drupal Module – Location bug
- c++学习笔记-------《c++自学通》第十二章 高级引用和指针
- ajax
- DataBinder.Eval用法收集
- apache配置svn中出现can not load modules/mod_dav_svn.so问题解决
- 泛型
- 简述C和C++程序员学习历程
- 字符串操作的几个经典实现
- Debian Lenny英文版安装后配置