Skip to content

Commit 2058ec4

Browse files
authored
Merge pull request #61 from wcz-txp/master
Removed "</code>" and added "Register tags" ...
2 parents 0ae7e12 + f567cfb commit 2058ec4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

README.textile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,15 +756,21 @@ p. Multiple plugins can be active at the same time and each of them can mark the
756756

757757
h4. Examples
758758

759-
bc.. register_callback('pap_comconnect_form','comconnect.form');
759+
bc.. if (class_exists('\Textpattern\Tag\Registry')) {
760+
Txp::get('\Textpattern\Tag\Registry')
761+
->register('pap_comconnect_form')
762+
->register('pap_comconnect_submit');
763+
}
764+
765+
register_callback('pap_comconnect_form','comconnect.form');
760766
register_callback('pap_comconnect_submit','comconnect.submit');
761767

762768
function pap_comconnect_form()
763769
{
764770
$field = '<div style="display:none">'.
765771
finput('text','phone',ps('phone'),'','','','','','phone').'<br />'.
766772
finput('text','mail',ps('mail'),'','','','','','mail').'</div>';
767-
return $field;</code>
773+
return $field;
768774
}
769775

770776
function pap_comconnect_submit()

0 commit comments

Comments
 (0)