Skip to content

Instantly share code, notes, and snippets.

return array(
'text_comma' => array(
'label' => t('Comma-separated'),
'field types' => array('text'),
'multiple values' => CONTENT_HANDLE_MODULE,
),
);
$view = new view;
$view->name = 'foo';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
git push
Enter passphrase for key '/home/dereine/.ssh/id_dsa':
To git@github.com:dereine/dereine_config.git
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:dereine/dereine_config.git'
<?php
// $Id$
global $user;
$link = l(t('Visit profile'), "user/$user->uid");
?>
<a href="<?php url("user/$user->uid"); ?>"><?php t('Visit profile'); ?></a>
<?php
// $Id$
/**
* Implementation of hook_form_privatemsg_new_alter().
*/
function foo_form_privatemsg_new_alter(&$form, &$form_state) {
$form['#submit'][] = 'foo_form_privatemsg_new_submit';
}
<?php
// $Id$
function pm_role_admin_settings() {
$form = array();
$roles = user_roles(TRUE);
foreach ($roles as $rid1 => $role1) {
foreach ($roles as $rid2 => $role2) {
$form['foo_messages_role_sent_from'. $rid1 .'_to_'. $rid2] = array(
'#type' => 'checkbox',
; $Id: garland.info,v 1.5 2007/07/01 23:27:32 goba Exp $
name = Gärland
description = Täbleless, recolorable, multi-column, fluid width theme (default).
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[print][] = print.css
; Information added by drupal.org packaging script on 2009-04-30
version = "6.11"
project = "drupal"
datestamp = "1241050838"
<?php
// habe den Vortrag zu wenig verfolgt von rapsli
class foo {
public function bar(foo = 123) {
return foo + 3;
}
}
diff --git a/.ajax_comments.js.swp b/.ajax_comments.js.swp
index 88e820c..8213005 100644
Binary files a/.ajax_comments.js.swp and b/.ajax_comments.js.swp differ
diff --git a/ajax_comments.js b/ajax_comments.js
index b9cdfc8..094bfd5 100644
--- a/ajax_comments.js
+++ b/ajax_comments.js
@@ -586,7 +586,7 @@ function ajax_comments_hide_progress(context) {
function insert_new_comment(comment) {