function YOU_MODULE_NAME_preprocess_views_view_field(&$vars) {
$view = $vars['view'];
$field = $vars['field'];
if ($view->name == 'name' && $view->current_display == 'display' && $field->field_alias == 'alias') {
$vars['output'] = str_replace(' ', '_', $vars['output']);
}
}
location /user {
allow 111.111.11.11;
deny all;
try_files $uri /index.php?$query_string;
}
location /cloud/ {
proxy_pass http://localhost:8000/;
}
$form['#action'] = 'http://text.ru/lead....';
$form['#method'] = 'GET';
$form['#pre_render'][] = 'MODULENAME_external_pre_render';
unset($form['form_token'], $form['form_build_id'], $form['form_id']);
...
error_page 500 501 502 503 504 = @customerror;
location @customerror {
root /var/www/awsome_domain/;
try_files $uri /50x.html = 503;
#internal;
}
...
Note: The running script must have executable permissions on all directories in the hierarchy, otherwise realpath() will return FALSE.
Замечание: Запускаемый скрипт должен иметь права запуска на всех директориях в проверяемой иерархии, иначе realpath() вернет FALSE.
exec(' YOU_SHELL_COMMAND --arg=a --arg=b 2>&1', $out, $status);