updated contrib modules
This commit is contained in:
@@ -19,9 +19,9 @@ The "building block" design of the views system provides power and flexibility,
|
||||
|
||||
<li><a href="topic:views/header">Header</a>, which allow you to add by default one or more text area above the views output. </li>
|
||||
|
||||
<li><a href="topic:views/footer">Footer</a>, which allow you to add by default one or more text area beneath the views output. </li>
|
||||
<li><a href="topic:views/footer">Footer</a>, which allow you to add by default one or more text area beneath the views output. </li>
|
||||
|
||||
<li>The <a href="topic:views/footer">Emtpy Text</a> content will be displayed, when you choose in the Arguments Section "Action to take if argument is not present" the option "Display empty text".</li>
|
||||
<li>The <a href="topic:views/footer">Emtpy Text</a> content will be displayed, when you choose in the Arguments Section "Action to take if argument is not present" the option "Display empty text".</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
@@ -4,8 +4,9 @@ As a consequence, it *always* thinks the value was submitted, even if it was not
|
||||
|
||||
<pre>
|
||||
<?php
|
||||
if (empty($form_state['view']->exposed_input[$identifier])) .
|
||||
{ $form_state['input'][$identifier] = $default_value; }
|
||||
if (empty($form_state['view']->exposed_input[$identifier])) {
|
||||
$form_state['input'][$identifier] = $default_value;
|
||||
}
|
||||
?>
|
||||
</pre>
|
||||
|
||||
@@ -18,10 +19,10 @@ To do this, I used the following function, where geoip_redirect_get_tid() loads
|
||||
<pre>
|
||||
<?php
|
||||
function MODULENAME_form_views_exposed_form_alter(&$form, $form_state) {
|
||||
if(strpos($form['#id'], 'volunteer-directory') !== FALSE) {
|
||||
if (strpos($form['#id'], 'volunteer-directory') !== FALSE) {
|
||||
$city_tid = geoip_redirect_get_tid();
|
||||
if(is_numeric($city_tid) && $city_tid != 7660) {
|
||||
if (empty($form_state['view']->exposed_input['tid'])) {
|
||||
if (is_numeric($city_tid) && $city_tid != 7660) {
|
||||
if (empty($form_state['view']->exposed_input['tid'])) {
|
||||
$form_state['input']['tid'] = $city_tid;
|
||||
}
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ Below is the contents of a simple node_example.views.inc file that allows you to
|
||||
* @endcode
|
||||
*/
|
||||
|
||||
function node_example_views_data() {
|
||||
function node_example_views_data() {
|
||||
// Basic table information.
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
|
@@ -169,8 +169,10 @@ Each field is described in the view data with an array, keyed to the database na
|
||||
|
||||
<pre>
|
||||
$data['node']['nid'] = array(
|
||||
// The item it appears as on the UI,
|
||||
'title' => t('Nid'),
|
||||
'help' => t('The node ID of the node.'), // The help that appears on the UI,
|
||||
// The help that appears on the UI,
|
||||
'help' => t('The node ID of the node.'),
|
||||
// Information for displaying the nid
|
||||
'field' => array(
|
||||
'handler' => 'views_handler_field_node',
|
||||
@@ -179,7 +181,8 @@ $data['node']['nid'] = array(
|
||||
// Information for accepting a nid as an argument
|
||||
'argument' => array(
|
||||
'handler' => 'views_handler_argument_node_nid',
|
||||
'name field' => 'title', // the field to display in the summary.
|
||||
// The field to display in the summary.
|
||||
'name field' => 'title',
|
||||
'numeric' => TRUE,
|
||||
'validate type' => 'nid',
|
||||
),
|
||||
|
@@ -113,9 +113,9 @@ The views_handler class got two new functions:
|
||||
/**
|
||||
* Get the value that's supposed to be rendered.
|
||||
*
|
||||
* @param $values
|
||||
* @param object $values
|
||||
* An object containing all retrieved values.
|
||||
* @param $field
|
||||
* @param string $field
|
||||
* Optional name of the field where the value is stored.
|
||||
*/
|
||||
function get_value($values, $field = NULL) {
|
||||
@@ -128,9 +128,9 @@ function get_value($values, $field = NULL) {
|
||||
/**
|
||||
* Sanitize the value for output.
|
||||
*
|
||||
* @param $value
|
||||
* @param string $value
|
||||
* The value being rendered.
|
||||
* @param $type
|
||||
* @param string $type
|
||||
* The type of sanitization needed. If not provided, check_plain() is used.
|
||||
*/
|
||||
function sanitize_value($value, $type = NULL) {
|
||||
@@ -138,9 +138,11 @@ function sanitize_value($value, $type = NULL) {
|
||||
case 'xss':
|
||||
$value = filter_xss($value);
|
||||
break;
|
||||
|
||||
case 'url':
|
||||
$value = check_url($value);
|
||||
break;
|
||||
|
||||
default:
|
||||
$value = check_plain($value);
|
||||
break;
|
||||
|
@@ -10,9 +10,9 @@ easiest way is to use the function <strong>views_embed_view()</strong>:
|
||||
* solution and doesn't really offer a lot of options, but breaking the function
|
||||
* apart is pretty easy, and this provides a worthwhile guide to doing so.
|
||||
*
|
||||
* @param $name
|
||||
* @param string $name
|
||||
* The name of the view to embed.
|
||||
* @param $display_id
|
||||
* @param string $display_id
|
||||
* The display id to embed. If unsure, use 'default', as it will always be
|
||||
* valid. But things like 'page' or 'block' should work here.
|
||||
* @param ...
|
||||
|
@@ -1,10 +1,10 @@
|
||||
<h2>Troubleshooting UI crashes</h2>
|
||||
|
||||
There are a number of reasons why the Views UI may crash; the most common state or result of a crash is either a white screen (everyone's favorite WSOD), or a screen of what looks like garbage text. This is generally a javascript crash of some fashion.
|
||||
There are a number of reasons why the Views UI may crash; the most common state or result of a crash is either a white screen (everyone's favorite WSOD), or a screen of what looks like garbage text. This is generally JavaScript crash of some fashion.
|
||||
|
||||
To get the most timely and accurate help in the issue queue, please try to gather this information:
|
||||
|
||||
Check your javascript console. In Firefox, you can hit ctrl-shift-j or use firebug. Copy this information into the issue, or attach it as a text file. Really - this is the single biggest thing you can do to help figure out where the crash is coming from.
|
||||
Check your JavaScript console. In Firefox, you can hit ctrl-shift-j or use firebug. Copy this information into the issue, or attach it as a text file. Really - this is the single biggest thing you can do to help figure out where the crash is coming from.
|
||||
|
||||
|
||||
<h3>JSON prepends data with jQuery, causing editing and preview problems.</h3>
|
||||
@@ -13,7 +13,7 @@ This section originally stems from <a href="http://drupal.org/node/346662">this
|
||||
Some modules may add PHP improperly, disrupting normal jQuery operation. Errors may look like
|
||||
|
||||
<code>
|
||||
<? session_module_name("files"); ?>{ "default": "default" }
|
||||
<?php session_module_name("files"); ?>{ "default": "default" }
|
||||
</code>
|
||||
|
||||
This can also be a server configuration issue. In one case, this was solved by commenting out
|
||||
|
Reference in New Issue
Block a user