Hello,
I am working on a custom module, in which i am using hook_validate() to add custom validations to my web page. I've got an image field to my web page, which i want to be required as well as other image validations like size and type also need to be put in, i tried following code as well to use drupal's built in validate functionality:
$form['image'] = array(
'#type' => 'file',
'#title' => t('Photo1'),
'#weight' => 7,
'#required' => TRUE,
'#description' => t('Click "Browse..." to select an image to upload.'));
But,it didn't work.
Please suggest me a way to do this!
Thanks,
Kul
Linux Foundation may use web
Linux Foundation may use web beacons from time to time. Such web beacons may be provided by Linux Foundation’s third party advertising companies to sat exam help manage and optimize Linux Foundation’s online advertising. A web beacon is a string of code that provides a method for delivering a graphic image on a asvab study guide web page or in an email message for the purpose of transferring data, or determining how many times a specific web page has been viewed. Web beacons enable Linux Foundation to recognize a browser’s cookie when a browser visits a Site, and to learn which banner ads bring users to each Site. For example, when a user cahsee visits a web page, the code for the page may include instructions to go to another server to gather a single pixel graphic image. Web beacons are not placed on a user’s computer, and users remain anonymous. To opt out of targeted advertising delivered by Linux Foundation, or third party advertisers, users can opt to use freely available ad blocking software, to prevent ads from displaying in their browser. The Linux Foundation does not promote or recommend any clep exam type of ad blocking software, nor guarantees that any of the Site services will remain fully functional if the user utilizes such software.