Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (46 sloc) 1.11 KB
<?php namespace ProcessWire;
/**
* ProcessWire FieldsetClose
*
* Inputfield and Fieldtype for closing a Fieldset.
* This accompanies the FieldsetOpen Fieldtype.
*
* For documentation about the fields used in this class, please see:
* /wire/core/Fieldtype.php
*
* ProcessWire 3.x, Copyright 2016 by Ryan Cramer
* https://processwire.com
*
*
*/
/**
* Inputfield to close a FieldsetOpen
*
*/
class InputfieldFieldsetClose extends Inputfield {
public function ___render() { return ''; }
public function ___getConfigInputfields() { return null; }
}
/**
* Fieldtype to close a FieldsetOpen
*
*/
class FieldtypeFieldsetClose extends FieldtypeFieldsetOpen {
public static function getModuleInfo() {
return array(
'title' => 'Fieldset (Close)',
'version' => 100,
'summary' => 'Close a fieldset opened by FieldsetOpen. ',
'permanent' => true,
);
}
public function getInputfield(Page $page, Field $field) {
return $this->wire(new InputfieldFieldsetClose());
}
public function ___getConfigInputfields(Field $field) {
return null;
}
public function isAdvanced() {
return true;
}
}