How to create a folder after clicking on a button?
The #submit property takes an array of function names rather than a single string:

$form['create_folder'] = array(
  '#type' =&gt; 'submit',
  '#value' =&gt; t('Create folder'),
  '#submit' =&gt; array('custom_submit'),
);