mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
20 lines
506 B
PHP
20 lines
506 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* {@link TreeDropdownField} subclass for handling loading folders through the
|
||
|
* nested {@link FormField} instances of the {@link FieldEditor}
|
||
|
*
|
||
|
* @package userforms
|
||
|
*/
|
||
|
class UserformsTreeDropdownField extends TreeDropdownField {
|
||
|
|
||
|
public function Link($action = null) {
|
||
|
$form = Controller::curr()->EditForm;
|
||
|
|
||
|
return Controller::join_links(
|
||
|
$form->FormAction(), 'field/Fields/handleField/' . $this->name,
|
||
|
$action .
|
||
|
'?SecurityID='. $form->getSecurityToken()->getValue()
|
||
|
);
|
||
|
}
|
||
|
}
|