I am developing a module. With one of its forms, I would like to upload a file. But I always failed. my form is like below:
function my_form($node){
// Other form elements here
// And now, the upload widget
$form['file'] = array('#type' => 'file', '#title' => t('Upload fIle'));
return $form;
}
I check if file uploaded or not if my_form_validate():
function my_form_validate($node){
if ($file = file_check_upload('file')){
// Do somthing here
}
}
Hello all. I'm working with the audio module along with the getid3 and playlist maker. Now so far its good for bringing in one audio at a time but I'm going to have mass audio. I like the way the playlist present itself but I need to find a way to get the audio imported into the site when its alot of audio. Now I already have the audio up on the server and I moved the files first to tmp/audio thenm I went into my site and went to import audio and it showed a very very long list of the audio files. I selected only one of them to import to see what will happen.
I have it on the top is links to youtube video and the bottom is littered with images that enlarges when clicked. is there such a gallery that can do something like this?
Hello, I am trying to change stacking order of the playlists that appear in a drop down list above XSPF player which I use in conjunction with audio and playlist modules. Currently it displays items in alphabetical order and I would like to change it to "new to old". How do I do it? Any help would be really appreciated.
I was wondering if there is a way to require users to fill out the "image Description" field, of the tinymce image editor, when adding pictures, so the web pages will validate as xhtml? As is you don't have to fill out anything, except the image path to get a picture added to your page.