Skip to content

Instantly share code, notes, and snippets.

@nils-werner
Created August 11, 2012 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nils-werner/3325166 to your computer and use it in GitHub Desktop.
Save nils-werner/3325166 to your computer and use it in GitHub Desktop.
Own Login
<?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");
}
}
}
?>
<?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