The gallery feature list all photos with the user’s names.
The gallery is displayed in menu.
Enable or disable this feature :
$use_csv = true;
Set the CSV file name :
$csv_filename = "white_pages_export_" . date("Y-m-d") . ".csv";
List the items that will be put in CSV file :
$csv_items = array('firstname', 'lastname', 'mail','organization');
To have same fields between Advanced search menu and CSV export :
$csv_items = $search_result_items;