Set span with width
display: inline-block;
width: ...px;
Set span with width
display: inline-block;
width: ...px;
JS:
JSON.stringify(myArr)
PHP
json_decode(str_replace('\', '', $_POST['var']));
The solution is from the issue:
logintoboggan module allows to register & login with email. user_registrationpassword module allows to set password and emai validation both configuration. But it does NOT work for both modules together.
Solution:
In hook_form_alter(), there are 2 methods:
function MYMODULE_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'user_pass') {
$form['#submit'][] = 'reflesh_current_path';
}
}
function reflesh_current_path($form, &$form_state) {
$current_path = current_path();
$form_state['redirect'] = $current_path;
git show bd61ad98 // Show detailed modification
It does not work to set expandtab off if you just comment out "set expandtab" in .vimrc. Instead, set under it as follows:
set expandtab
set noexpandtab