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
<? | |
function content_timelock_link_alter(&$links, $node, $comment = NULL) { | |
global $user; | |
$have_access = in_array('moderator',array_values($user->roles) ) || $user->uid==1; | |
$diff_time = time() - $comment->timestamp; | |
$time_limit = variable_get('content_timelock_live_time',24); | |
if ( $diff_time > $time_limit*60 && !$have_access && variable_get('content_timelock_disable_alter_button',false) == true) { | |
unset($links['comment_edit']); |
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
<html> | |
<head> | |
<title>Select Example</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript"> |
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
ghci> [1,2,3] | |
[1,2,3] | |
ghci> ["foo","bar","string"] | |
["foo","bar","string"] | |
ghci> [True,False] | |
[True,False] | |
-- enumeration notation | |
ghci> [1..5] | |
[1,2,3,4,5] |
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
name=Page Example | |
description = test module | |
core=6.x | |
version=0.1 |
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 page_ex_menu() { | |
$items = array(); | |
$items['admin/PageEx'] = array( | |
'title' => 'Page Example Title', | |
'description' => 'Page Decription', | |
// 'page callback' => 'nat', | |
'page callback' => 'drupal_get_form', | |
'page arguments' => array('natform'), |
NewerOlder