find_all_in_path() returns the list of files that match a specific pattern. Like find_in_path(), these files are searched for in all the directories defined in the SPIP file path.

$list_of_files = find_all_in_path($dir, $pattern);


SPIP uses this function to get all the CSS files that the plugins add to the private interface using the files named "prive/style_prive_plugin_prefix.html". To do so, it uses the following line of PHP code:

$list = find_all_in_path('prive/', '/style_prive_plugin_');

Author Gilles Vincent Published : Updated : 12/03/23

Translations : English, français