@todo Please document this function.

Voir aussi

http://drupal.org/node/1354

2 calls to advagg_form_print_r()
advagg_bundler_admin_settings_form dans advagg_bundler/advagg_bundler.admin.inc
Form builder; Configure advagg settings.
_advagg_admin_settings_information dans includes/admin.inc

Fichier

includes/admin.inc, line 751

Code

function advagg_form_print_r($data) {
    $data = print_r($data, TRUE);
    $data = explode("\n", $data);
    $new_data = '';
    foreach ($data as $text) {
        $new_text = str_replace('    ', '', $text);
        if ($new_text == "(") {
            $new_data .= ' ' . $new_text;
        }
        else {
            $new_data .= "\n" . $text;
        }
    }
    $new_data = explode("\n", $new_data);
    $new_data = array_filter($new_data);
    $rows = count($new_data);
    $new_data = implode("\n", $new_data);
    return array(
        $new_data,
        $rows,
    );
}