original_string: public function js_init_call($function, array $extraarguments = null, $ondomready = false, array $module = null) {
          $jscode = js_writer::function_call_with_Y($function, $extraarguments);
          if (!$module) {
              // Detect module automatically.
              if (preg_match('/M\.([a-z0-9]+_[^\.]+)/', $function, $matches)) {
                  $module = $this->find_module($matches[1]);
              }
          }
  
          $this->js_init_code($jscode, $ondomready, $module);
      }
code: public function js_init_call($function, array $extraarguments = null, $ondomready = false, array $module = null) {
          $jscode = js_writer::function_call_with_Y($function, $extraarguments);
          if (!$module) {
              // Detect module automatically.
              if (preg_match('/M\.([a-z0-9]+_[^\.]+)/', $function, $matches)) {
                  $module = $this->find_module($matches[1]);
              }
          }
  
          $this->js_init_code($jscode, $ondomready, $module);
      }
code_tokens: public function js_init_call ( $ function , array $ extraarguments = null , $ ondomready = false , array $ module = null ) { $ jscode = js_writer :: function_call_with_Y ( $ function , $ extraarguments ) ; if ( ! $ module ) { // Detect module automatically. if ( preg_match ( '/M\.([a-z0-9]+_[^\.]+)/' , $ function , $ matches ) ) { $ module = $ this -> find_module ( $ matches [ 1 ] ) ; } } $ this -> js_init_code ( $ jscode , $ ondomready , $ module ) ; }
docstring: Ensure that the specified JavaScript function is called from an inline script
  from page footer.
  
  @param string $function the name of the JavaScritp function to with init code,
  usually something like 'M.mod_mymodule.init'
  @param array $extraarguments and array of arguments to be passed to the function.
  The first argument is always the YUI3 Y instance with all required dependencies
  already loaded.
  @param bool $ondomready wait for dom ready (helps with some IE problems when modifying DOM)
  @param array $module JS module specification array
docstring_tokens: Ensure that the specified JavaScript function is called from an inline script from page footer .