The drupal_get_path() function will look up a string (second argument) in Drupal's system table and find a path in the same row.
The current theme can be retrieved using the path_to_theme() function. It will return everything after the base url to the current theme.
The setTimeout() method executes a function or an expression after a number of milliseconds have passed.
The trigger module is not the only way to call actions. Separate modules can be written to call actions and prepare parameters. This is typically done using a function called actions_do().
When an action is created, the information that is set in the configuration form is serialized and saved into the parameters field of the actions table. Immediately before the advanced action is executed, the contents of the parameters field are unserialized and included in the $context parameter.
Translates a string to appropriate language. First argument should always be in english. It takes in $string, $args, and $options as parameters. $string is the english string to translate. $args is an associative array containing substitutions. $options is an associative array of additional options.