openid_ax

best way of inserting multiple rows..

  1. global $user;
  2.  
  3.  
  4.   $copySrc = db_query("SELECT * FROM {openid_ax_values} WHERE uid='%d' AND persona_id='%d'",$user->uid, $form_state['values']['from_personas']);

form_state rebuild

  1. function openid_ax_persona_form(&$form_state, $persona_id = 0) {
  2.  
  3.   global $user;
  4.  
  5.   $form = array();
  6.  
  7.   $identifiers = db_query("SELECT * FROM {openid_ax_attributes}");

Fix for openid_ax_persona_form

  1. this is in openid_ax.module::
  2.  
  3. $items['user/%user/persona'] = array(
  4.     'title' => 'OpenID AX Personas',
  5.     'page callback' => 'openid_ax_persona',
  6.     'access callback' => TRUE,

openid_ax_persona_form

  1. this is in openid_ax.module::
  2.  
  3. $items['user/%user/persona'] = array(
  4.     'title' => 'OpenID AX Personas',
  5.     'page callback' => 'openid_ax_persona',
  6.     'access callback' => TRUE,

openid_ax_persona_form_submit_select_persona

  1. <?php
  2. // $Id: openid_ax.pages.inc,v 1.8 2008/07/04 05:44:58 anshuprateek Exp $
  3.  
  4. /**
  5.  * @file
  6.  * Page callbacks for OpenID AX.
  7.  */
  8.  
  9. /**
  10.  * Primary endpoint callback - serves op_endpoint.
  11.  *
  12.  

openid_ax_persona_form

  1. function openid_ax_persona_form() {
  2.   global $user;
  3.   $form = array();
  4.   $identifiers = db_query("SELECT * FROM {openid_ax_attributes}");

form submission

  1. <form action="/anshu/drupal/op/?q=user/1/persona"  accept-charset="UTF-8" method="post" id="openid-ax-persona-form">
  2. <div><div class="form-item" id="edit-1-wrapper">

how do I access the variables in the submit of this form?

  1. function openid_ax_persona_form() {
  2.   global $user;
  3.   $form = array();
  4.   $identifiers = db_query("SELECT * FROM {openid_ax_attributes}");

user/%uuers/persona not created

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file Openid Attribute Exchange implementation for drupal
  6.  */
  7.  
  8. /**
  9.  * Implementation ofhook_menu()
  10.  */
  11. function openid_ax_menu() {
  12.   $items['openid/ax'] = array(

menu not created

  1.  $items['user/%user/persona'] = array(
  2.     'title' => 'OpenID Attribute Exchange Personas',
  3.     'page callback' => 'openid_ax_persona',
  4.     'access callback' => TRUE,
Syndicate content