LJ::make_authas_select

LJ::make_authas_select — Given a u object and some options, determines which users the given user can switch to. If the list exists, returns a select list and a submit button with labels. Otherwise returns a hidden element.

Use

LJ::make_authas_select(u, opts);

Arguments

  • u. A hashref of a row from the user table, sometimes called a "user object". Although only initially a row from the user table, gets a lot of tacked onto it from various other LJ API functions.

  • opts. Optional. Valid keys are: 'authas' - current user, gets selected in drop-down; 'label' - label to go before form elements; 'button' - button label for submit button; others - arguments to pass to LJ::get_authas_list; check_paid - for each user in list will set parameter 'data-paid:0|1', used by JS

Source:

cgi-bin/weblib.pl

Returns:

string of HTML elements