/**
* Implements hook_views_pre_render().
*/
function hook_views_pre_render(&$view) {
if ($view->name == 'myview') {
foreach ($view->result as &$row) {
$row->field_myfield[0]['rendered']['#markup'] = $row->field_myfield[0]['rendered']['#markup'] ? t('Yes') : t('No');
Стили для html расчета
<link href="http://pm-online.ru/css/calc.css" rel="stylesheet" media="all" type="text/css" />
<link href="http://pm-online.ru/css/calc.single.pro.css" rel="stylesheet" media="all" type="text/css" />ModX
Notice: Undefined index: virtual_dir in /data/virtual/flyuia/htdocs/manager/includes/document.parser.class.inc.php on line 2301
Notice: Undefined index: type in /data/virtual/flyuia/htdocs/manager/includes/document.parser.class.inc.php on line 3691
Error
Делаем бекап mysqldump -u USER -pPASSWORD DATABASE > /path/to/file/dump.sql
Создаём структуру базы без данных mysqldump --no-data - u USER -pPASSWORD DATABASE > /path/to/file/schema.sql
Если нужно сделать дамп только одной или нескольких таблиц mysqldump -u USER -pPASSWORD DATABASE TABLE1 TABLE2 TABLE3 > /path/to/file/dump_table.sql
Создаём бекап и сразу его архивируем
https://evolvingweb.ca/blog/installing-drupal-console-windows
drupal site:mode dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Drupal\Core\Url; | |
| use Drupal\Core\Link; | |
| use Drupal\Core\Form\FormStateInterface; | |
| function mymodule_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { | |
| foreach (array_keys($form['actions']) as $action) { | |
| if ($action != 'preview' && isset($form['actions'][$action]['#type']) && $form['actions'][$action]['#type'] === 'submit') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function mytheme_theme_suggestions_views_view_alter(&$suggestions, &$vars, $hook) { | |
| $request = \Drupal::routeMatch()->getRouteObject()->getDefault('view_id'); | |
| if (!empty($request)) { | |
| $suggestions[] = 'views-view__' . $request; | |
| } |