original_string: public static function validate_event_plugin($plugin, $eventname, $eventlist = array()) {
          if (empty($eventlist)) {
              $eventlist = self::get_all_eventlist();
          }
          if (isset($eventlist[$plugin][$eventname])) {
              return true;
          }
  
          return false;
      }
code: public static function validate_event_plugin($plugin, $eventname, $eventlist = array()) {
          if (empty($eventlist)) {
              $eventlist = self::get_all_eventlist();
          }
          if (isset($eventlist[$plugin][$eventname])) {
              return true;
          }
  
          return false;
      }
code_tokens: public static function validate_event_plugin ( $ plugin , $ eventname , $ eventlist = array ( ) ) { if ( empty ( $ eventlist ) ) { $ eventlist = self :: get_all_eventlist ( ) ; } if ( isset ( $ eventlist [ $ plugin ] [ $ eventname ] ) ) { return true ; } return false ; }
docstring: validate if the given event belongs to the given plugin.
  
  @param string $plugin Frankenstyle name of the plugin.
  @param string $eventname Full qualified event name.
  @param array $eventlist List of events generated by {@link eventlist::get_all_eventlist}
  
  @return bool Returns true if the selected event belongs to the selected plugin, false otherwise.
docstring_tokens: validate if the given event belongs to the given plugin .