mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 15:28:44 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
namespace WCFE\Libraries\Forms\Rules;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class RequiredField extends \WPPFW\Forms\Rules\RequiredField
|
||||
{
|
||||
|
||||
/**
|
||||
* put your comment there...
|
||||
*
|
||||
* @param mixed $message
|
||||
*/
|
||||
protected function getMessageString( $message )
|
||||
{
|
||||
|
||||
switch ( $message )
|
||||
{
|
||||
case self::MSG_CANNOT_EMPTY:
|
||||
|
||||
return \WCFE\Plugin::__( 'Field Cannot be empty' );
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
$string = false;
|
||||
}
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user