hook_filter_process, hook_info_filter no cache

Hello All

It seems, that the option 'no cache' does not work on Drupal 7, no matter what I do, the filtered text is always cached, that means, I always have to clear cache to see changes I did in my filter. Here is the code:

<?php

function quicktags_filter_info() {
$filters = array();
$filters['news'] = array(
'title' => t('Convert [NewsAccordion] quicktag'),
'description' => t('Enables users to insert [NewsAccordion] quicktags
which will be replaced with the latest news accordion.'),
'process callback' => 'news_filter_process',
'tips callback' => 'news_filter_tips',
);

$filters['video'] = array(
'title' => t('Convert [Video] quicktag'),
'description' => t('Enables users to insert [Video-x] quicktags
which will be replaced with the corresponding video attached bellow.
You may attach several videos. To get the first video use [Video-1].'),
'process callback' => 'video_filter_process',
'cache' => FALSE,
);
return $filters;
}

/**
* [Video-x] filter process callback
*/
function video_filter_process($text, $filter, $format) {
global $settings;
$settings = array(
'node' => variable_get('current_node_viewed'),
'width' => 300,
'height' => 179,
'container_id' => 'video-player'
);

$text = preg_replace_callback("/\[Video-[1-9]\]/i", "replaceVideo", $text);

Burning Drupal to CD

Hi

I am a student and a new repetitively new user to Drupal. I am required to provide a copy of my Drupal site on a CD but I am unsure of how I would copy the website and database to a CD.

Any help offered would be greatly appreciated.

Thanks in advance

Mark

FullCalendar isn't showing my (Google) Calendar

FullCalendar isn't showing my (Google) Calendar. It just shows an empty page. In the screenshot you can check my settings: http://i51.tinypic.com/2j4y34y.png

What am I doing wrong?

edit: Workaround by by using the Google Calendar iframe...

Radios, Checkboxes and AJAX

Hi there,
sorry but i have 3 questions:

1- How can i trigger ajax on a specifix choice of radio button in a radios list?
Adding the ajax attribute to the form element triggers the ajax function on every value change!

$form['act_type'] = array(
		'#type' => 'radios',
		'#title' => t('Type'),
		'#options' => drupal_map_assoc(array(
			t('Art'),
			t('Conference'),
			t('Music'),
			t('Other'),
		)),
		'#default_value' => empty($form_state['values']['act_type']) ? '' : $form_state['values']['act_type'],
		'#required' => TRUE,
		'#ajax' => array(
			'wrapper' => 'act-type-other-div',
			'callback' => 'show_act_type_other_callback',
			'effect' => 'fade',
		)
	  );

I just want ajax to be triggered when the "Other" radio is chosen.

2- The same question concerning checkboxes.

$form['act_type'] = array(
		'#type' => 'checkboxes',
		'#title' => t('Type'),
		'#options' => drupal_map_assoc(array(
			t('Art'),
			t('Conference'),
			t('Music'),
			t('Other'),
		)),
		'#default_value' => empty($form_state['values']['act_type']) ? '' : $form_state['values']['act_type'],
		'#required' => TRUE,
		'#ajax' => array(
			'wrapper' => 'act-type-other-div',
			'callback' => 'show_act_type_other_callback',
			'effect' => 'fade',
		)
	  );

Image Gallery in a Block/Field

Hello,

Is there a sable module for Drupal 7 where you can add a gallery to a page in its own block/field.

Needed functionality:

- Garlery management per page (like a image-field in the content-types)
- image-upload (implementation with an other module is fine)
- resizing etc
- alt-tags / titles
- I have the Colorbox module installed now and it would be great if in integrates in the gallery.

Display nodes with a specific content-type in a region

Hi There, i have a few questions that i'm struggling wiith for a week now!!

I have created a content-type for my projects and a menu where I specify the project nodes that i want to display.

How do I display a specific content-type (my projects) in a region on page.tpl.php. And how do i create a menu for the items that i want to display in that region.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x