protected function _paramsPlugin($config)
    {
        $entity = $config->entity;
        $element = $entity->element;
        $folder = $entity->folder;

        $config_file_path = ANPATH_SITE.DS.'plugins'.DS.$folder.DS.$element.'.json';

        if(file_exists($config_file_path)) {
            $plugin_config = json_decode(file_get_contents($config_file_path));
            if(isset($plugin_config->fields)) {
                return $this->_renderForm($plugin_config->fields, $entity);
            } else {
                return AnTranslator::_('COM-SETTINGS-PROMPT-NO-CONFIGURATION-AVAILABLE');
            }
        } else {
            return AnTranslator::_("Couldn't find the {$element}.json file!");
        }
    }
protected function _paramsPlugin($config)
    {
        $entity = $config->entity;
        $element = $entity->element;
        $folder = $entity->folder;

        $config_file_path = ANPATH_SITE.DS.'plugins'.DS.$folder.DS.$element.'.json';

        if(file_exists($config_file_path)) {
            $plugin_config = json_decode(file_get_contents($config_file_path));
            if(isset($plugin_config->fields)) {
                return $this->_renderForm($plugin_config->fields, $entity);
            } else {
                return AnTranslator::_('COM-SETTINGS-PROMPT-NO-CONFIGURATION-AVAILABLE');
            }
        } else {
            return AnTranslator::_("Couldn't find the {$element}.json file!");
        }
    }
protected function _paramsPlugin ( $ config ) { $ entity = $ config -> entity ; $ element = $ entity -> element ; $ folder = $ entity -> folder ; $ config_file_path = ANPATH_SITE . DS . 'plugins' . DS . $ folder . DS . $ element . '.json' ; if ( file_exists ( $ config_file_path ) ) { $ plugin_config = json_decode ( file_get_contents ( $ config_file_path ) ) ; if ( isset ( $ plugin_config -> fields ) ) { return $ this -> _renderForm ( $ plugin_config -> fields , $ entity ) ; } else { return AnTranslator :: _ ( 'COM-SETTINGS-PROMPT-NO-CONFIGURATION-AVAILABLE' ) ; } } else { return AnTranslator :: _ ( "Couldn't find the {$element}.json file!" ) ; } }
renders a plugin's paramters as form fields

@param array attributes
@return html form fields
renders a plugin s paramters as form fields