Commit 285155e5 authored by Mindiell's avatar Mindiell
Browse files

First commit

; $Id$
name = "Modifie le champ corps des citations"
description = Modifie le champ corps des citations
core = 6.x
package = "La Quadrature"
function lqdn_citations_form_alter(&$form, &$form_state, $form_id) {
$texte_defaut_citations = <<<EOF
<blockquote>« citation »</blockquote>
<b>Auteur[, Fonction]</b> - <i><a href="#">source</a>, le (jj mois aaaa). </i>
if($form_id == 'citations_node_form' && $form['nid']['#value']==NULL){
$form['body_field']['body']['#default_value'] = $texte_defaut_citations;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment