Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Hi, I am getting disabled file upload on the page. One more thing is I am doing this thing on admin page. So form function I cant use I guess. I have written ur form elements inside mymodule_admin() function. Commented Jul 28, 2016 at 12:37
  • @Suraj Yes, I make it disabled by default. You can remove the #disabled code if you don't want this feature. And, if you are using form API to construct form in admin page. It should work. Commented Jul 28, 2016 at 13:01
  • Thanks for your information. I am bit new to this thing. How can i use form api in admin page. I know only hting is to display in admin page we have to use mymodule_admin function. Whatever i will write inside this function that will display on admin page. So where can i use form api here. Commented Jul 28, 2016 at 13:19
  • @Suraj You can read Creating a module configuration (settings) page first. Commented Jul 28, 2016 at 13:25