DrupalBin
Submit Code
About
Recent Posts
admin settings not saving
8 min 37 sec
ago
Code
51 min 44 sec
ago
Code
1 hour 7 min
ago
css path
2 hours 51 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for openid_ax_persona_form
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
function openid_ax_persona_form() { global $user; $form = array(); $identifiers = db_query("SELECT * FROM {openid_ax_attributes}"); $ax_values = db_query("SELECT * FROM {openid_ax_values} WHERE uid=%d",$user->uid ); while($row = db_fetch_array($ax_values)) { $persona_value[$row['ax_id']] = $row['ax_values']; } while($row = db_fetch_array($identifiers)) { $form[$row['ax_id']] = array( '#type' => 'textfield', '#title' => t($row['identifier']), '#value' => $persona_value[$row['ax_id']], '#size' => 25, '#maxlength' => 100 ); } $form['submit'] = array( '#type' => 'submit', '#value' => t('Submit'), ); return $form; }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.