i would like to have Alternate login in views.

CommentFileSizeAuthor
#3 alt_login-6.x-1.2.views_.tar_.gz26.22 KBivrh
#3 alt_login.patch563 bytesivrh

Comments

hunmonk’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

i have no interest in coding this. either a patch would need to show up, or it would need to be sponsored.

also, 6.x is feature-frozen, moving to 7.x.

hunmonk’s picture

see http://drupal.org/project/alt_login#commitment for how feature requests are handled

ivrh’s picture

Version: 7.x-1.x-dev » 6.x-1.2
Assigned: Unassigned » ivrh
Status: Active » Needs review
Issue tags: +alt_login views
StatusFileSize
new563 bytes
new26.22 KB

Here's patch and complete module archive for 6.x-1.2.

I have added required files to implement alt_login views field and also patch is required to load views-related includes.

With this patch you will get Alternate login field, sorting option and filter.

Mainteiner - please update 6.x-1.dev branch so people could test.

This is tested in my live site with Views 6.x-2.x.

hunmonk’s picture

Status: Needs review » Needs work

as i mentioned in comment #1, 6.x is feature frozen -- this will need to be re-rolled for 7.x in order to make it into the module.

enboig’s picture

I codded something similar in one of my modules, why did you use "alt_login_handler_field_alt_login" to handle the field? isn't string handler enough?

ivrh’s picture

String handler will be enough to display plain unmodified value. In my case I needed to do a bit of work on the value prior displaying it, as the alt_login value was used as membership number in my custom module.

So I reverted alt_login_handler_field_alt_login to only display plain value and posted. But this should work anyway.

kmajzlik’s picture

do not use hook_init + require, use

/**
* Implementation of hook_views_api().
*/
function alt_login_views_api() {
  return array(
    'api' => 2,
    'path' => drupal_get_path('module', 'alt_login') .'/views',
  );
}
cjsmith87’s picture

Would someone be able to help me with this, I run this module on drupal 7 and need it to appear in a view. I would like to add the code to my own module if possible as I have my own custom module for all sorts of tweaks like this for my site, to keep it separate from the main code in case it ever gets updated