how to get $form_state outside of FAPI's functions?
- by logii
I'm writing a custom module and I'd like to use $form_state of the current form in another non-form api function - custom_facet_view_build().
any help is appreciated :)
<?php
/**
* Implementation of hook_perm().
*/
function custom_facet_perm() {
return array(
'access foo content',
'access baz content',
);
}
/**
*…