Created
August 11, 2012 15:09
-
-
Save nils-werner/3325166 to your computer and use it in GitHub Desktop.
Own Login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Class extension_ownlogin extends Extension{ | |
public function getSubscribedDelegates() { | |
return array( | |
array( | |
'page' => '/backend/', | |
'delegate' => 'AdminPagePreGenerate', | |
'callback' => 'changeLoginForm' | |
) | |
); | |
} | |
public function changeLoginForm($context) { | |
if($context['oPage'] instanceof contentLogin) { | |
$context['oPage']->Form->getChildByName("div",0)->getChildByName("button",0)->setValue("Bazinga"); | |
} | |
} | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<extension id="ownlogin" status="released" xmlns="http://symphony-cms.com/schemas/extension/1.0"> | |
<name>Own Login</name> | |
<description>Loginbutton changer</description> | |
<types> | |
<type>Interface</type> | |
</types> | |
<authors> | |
<author> | |
<name github="nils-werner" symphony="phoque">Nils Werner</name> | |
<website>http://www.phoque.de/</website> | |
</author> | |
</authors> | |
<releases> | |
<release version="1.0" date="2012-08-11" min="2.3"> | |
Initial release | |
</release> | |
</releases> | |
</extension> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment