source/php/Search.php
public function isModuleSearch()
    {
        global $pagenow;

        if ($pagenow == 'edit.php' && isset($_GET['s']) && $_GET['s'] !== '') {
            $enabled = \Modularity\ModuleManager::$enabled;
            if (in_array($_GET['post_type'], $enabled)) {
                return true;
            }
        }

        return false;
    }
public function isModuleSearch()
    {
        global $pagenow;

        if ($pagenow == 'edit.php' && isset($_GET['s']) && $_GET['s'] !== '') {
            $enabled = \Modularity\ModuleManager::$enabled;
            if (in_array($_GET['post_type'], $enabled)) {
                return true;
            }
        }

        return false;
    }
public function isModuleSearch ( ) { global $ pagenow ; if ( $ pagenow == 'edit.php' && isset ( $ _GET [ 's' ] ) && $ _GET [ 's' ] !== '' ) { $ enabled = \ Modularity \ ModuleManager :: $ enabled ; if ( in_array ( $ _GET [ 'post_type' ] , $ enabled ) ) { return true ; } } return false ; }
Helper method to determine if a module search is performed on a module edit page.
@return bool
Helper method to determine if a module search is performed on a module edit page .