Skip to content

Instantly share code, notes, and snippets.

View nguyenthanhxuan's full-sized avatar
😃

Xuan Nguyen nguyenthanhxuan

😃
View GitHub Profile
<?php
/**
* Implements hook_form_alter().
*/
function modulename_form_alter(&$form, &$form_state, $form_id) {
// You might want to filter by content type.
if ($form_id == 'ctype_node_form') {
// Add a cancel button.
$form['actions']['cancel'] = array(
<?php
require_once("PHPExcel/PHPExcel.php");
$phpExcel = new PHPExcel();
$styleArray = array(
'font' => array(
'bold' => true,
)
);
(function () {
if (!Worker) //Detect IE
document.location = "http://www.whatbrowser.org/ru/browser/";
})();
@nguyenthanhxuan
nguyenthanhxuan / index.html
Created March 24, 2013 08:06
html: begin
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>the HTML template</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="header">
<div id="header_content">