Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function get_validation_rules($mode = '', $group = '') {
- return array (
- 'id' => array (
- 'digit'
- ),
- 'name' => array (
- 'required',
- 'length' => '1,40',
- 'callback' => array('Site_Controller', 'valid_unique_name')
- ),
- 'formattedDomain' => array (
- 'required',
- 'length' => '1,40'
- ),
- 'siteName' => array (
- 'required',
- 'length' => '1,255'
- ),
- 'infoEmail' => array (
- 'required',
- 'email',
- 'length' => '0,64'
- ),
- 'salesEmail' => array (
- 'required',
- 'email',
- 'length' => '0,64'
- ),
- 'addr1' => array (
- 'required',
- 'length' => '1,64'
- ),
- 'addr2' => array (
- 'length' => '0,64'
- ),
- 'city' => array (
- 'required',
- 'length' => '0,40'
- ),
- 'state' => array (
- 'required',
- 'length' => '2'
- ),
- 'zipCode' => array (
- 'required',
- 'length' => '5,10'
- ),
- 'phone' => array (
- 'required',
- 'phone',
- 'length' => '1,12'
- ),
- 'metaKeywords' => array (
- 'length' => '0,255'
- ),
- 'metaDescription' => array (
- 'length' => '0,255'
- )
- );
- }
- ?>
Add Comment
Please, Sign In to add comment