-
If you are in the middle of some work, feel free to create a backup of your current database, either with SequelPro, or via
drush cc all drush sql-dump -l default --gzip --result-file=../db/backups/pre-vm-upgrade-$(date +%m.%d.%y-%H-%M).sql.gzip
-
Remove the current environment with
vagrant destroy -f
This file contains 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 | |
namespace Drupal\field_layout\Form; | |
use Drupal\Core\Entity\EntityFieldManagerInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
This file contains 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
/** | |
* Implements hook_form_alter(). | |
*/ | |
function mymodule_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'submenu_reorder_node_page_reorder') { | |
foreach (element_children($form['menu_items']) as $id) { | |
$menu_link = menu_link_load($id); | |
$url = url($menu_link["link_path"]); | |
$form['menu_items'][$id]['link_title']['#markup'] = '<a href="'. $url .'">'. $menu_link["link_title"] . '</a>'; | |
} |
This file contains 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
h1 { | |
font-size: 2em; | |
font-weight: normal; | |
&.yell { | |
text-decoration: uppercase; | |
font-weight: bold; | |
} | |
} |
This file contains 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 | |
/** | |
* @file | |
* Tweet block bean plugin. | |
*/ | |
/** | |
* Require the twitteroauth library | |
*/ | |
require_once(drupal_get_path('module','bean_tweets') . '/libraries/twitteroauth/twitteroauth.php'); |
This file contains 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 | |
/** | |
* @file | |
* Tweet block bean plugin. | |
*/ | |
/** | |
* Require the twitteroauth library | |
*/ | |
require_once(drupal_get_path('module','bean_tweets') . '/libraries/twitteroauth/twitteroauth.php'); |
This file contains 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 | |
/** | |
* Implements hook_menu(). | |
*/ | |
function bean_tweets_menu() { | |
$items = array(); | |
$items['admin/config/system/bean_tweets'] = array( | |
'title' => t('Bean Tweets OAuth'), | |
'description' => t('Configure OAuth for Bean Tweets module'), | |
'page callback' => 'drupal_get_form', |
This file contains 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 | |
/** | |
* Implements hook_uninstall(). | |
*/ | |
function bean_tweets_uninstall() { | |
variable_del('twitter_consumer_key'); | |
variable_del('twitter_consumer_secret'); | |
variable_del('twitter_access_token'); | |
variable_del('twitter_token_secret'); |
This file contains 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 | |
/** | |
* @file | |
* Bean admin page for setting up oAuth | |
*/ | |
/** | |
* Admin form. | |
*/ | |
function bean_tweets_admin($form, &$form_state) { |