public function plugin_name($component) {

        $pluginfo = $this->get_plugin_info($component);

        if (is_null($pluginfo)) {
            throw new moodle_exception('err_unknown_plugin', 'core_plugin', '', array('plugin' => $component));
        }

        return $pluginfo->displayname;
    }
public function plugin_name($component) {

        $pluginfo = $this->get_plugin_info($component);

        if (is_null($pluginfo)) {
            throw new moodle_exception('err_unknown_plugin', 'core_plugin', '', array('plugin' => $component));
        }

        return $pluginfo->displayname;
    }
public function plugin_name ( $ component ) { $ pluginfo = $ this -> get_plugin_info ( $ component ) ; if ( is_null ( $ pluginfo ) ) { throw new moodle_exception ( 'err_unknown_plugin' , 'core_plugin' , '' , array ( 'plugin' => $ component ) ) ; } return $ pluginfo -> displayname ; }
Returns a localized name of a given plugin

@param string $component name of the plugin, eg mod_workshop or auth_ldap
@return string
Returns a localized name of a given plugin