I needed to change the default login link from "Login" to "Sign in / Sign up" so I edited the module to set the l() to a variable that can be edited through the Fancy Login admin menu vs a hard-coded value.

I don't really have the time to clone this project and make a patch, so if someone wants to add this in the next release that would be much appreciated so it doesn't get overwritten in your next update.

fancy_loginpages.inc:

 $form['display']['login_box_default_text'] = array
	(
	 	'#title' => t('Login Box Default Text'),
		'#type' => 'textfield',
		'#maxlength' => 20,
		'#size' => 20,
		'#default_value' => variable_get('login_box_default_text', 'Login'),
		'#description' => t('The default text for the login link. Defaults to "Login"'),
	);

In .module starting at 500:

/**
* Implementation of hook_block_view()
*/

function fancy_login_block_view($delta = '')
{
	if($delta == 'fancy_login_login_block')
	{
		if(user_is_anonymous())
		{
			$block['subject'] = t(variable_get('login_box_default_text'));
			$block['content'] = array
			(
				'link' => array
				(
					'#markup' => l(t(variable_get('login_box_default_text')), 'user/login'),
					'#prefix' => '<div id="fancy_login_login_link_wrapper">',
					'#suffix' => '</div>',
				),
			);

			return $block;
		}
	}
}

Thank you,

Andy

Comments

asauterChicago’s picture

Issue summary: View changes
asauterChicago’s picture

Assigned: asauterChicago » Unassigned
jaypan’s picture

Status: Active » Fixed

I've added this functionality to 7.x-3.x-dev. It will be part of the next release. Note that you will need to go in and set your text again, as I have changed the name of the key you used, so that it is consistent with the rest of the variables set by the module in being prefixed with the module name.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.