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
// The list of possible types: | |
kint(\Drupal::service('plugin.manager.field.field_type')->getDefinitions()); |
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 | |
use Drupal\Core\Render\Markup; | |
/** | |
* Mail hook | |
*/ | |
function hook_mail($key, &$message, $params) { | |
$options['langcode'] = $message['langcode']; | |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
# Fire this command to check your vulnerability | |
# A handshake failure signifies that EXPORT cipher is not active on the server and it is safe. | |
openssl s_client -connect www.google.com:443 -cipher EXPORT |
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 | |
/** | |
* Use hook_form_alter to unset both options on node edit forms. | |
* But on the main admin content page, the options still appear under 'Update options' dropdown. | |
*/ | |
/** | |
* Implements hook_form_alter(). | |
* This is remove the promote to frontpage, and make sticky options from node edit pages |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Title="MyTitle" Inherits="ASP1._Default" MasterPageFile="~/MasterPage.Master" %> |
NewerOlder