comparison channel/ad_channel.module @ 8:32c1a7d9e1fa ad tip

maj module ad en 2.1
author sly
date Fri, 11 Sep 2009 11:10:20 +0000
parents 6aeff3329e01
children
comparison
equal deleted inserted replaced
7:6aeff3329e01 8:32c1a7d9e1fa
1 <?php 1 <?php
2 // $Id: ad_channel.module,v 1.1.4.26 2009/07/17 21:29:37 jeremy Exp $ 2 // $Id: ad_channel.module,v 1.1.4.27 2009/07/29 23:00:39 jeremy Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Ad Channel module. 6 * Ad Channel module.
7 * 7 *
1092 '#default_value' => $chid ? $channel->display : 0, 1092 '#default_value' => $chid ? $channel->display : 0,
1093 ); 1093 );
1094 $form['URL_rules']['urls'] = array( 1094 $form['URL_rules']['urls'] = array(
1095 '#type' => 'textarea', 1095 '#type' => 'textarea',
1096 '#title' => t('Paths'), 1096 '#title' => t('Paths'),
1097 '#description' => t("Enter one URL per line. If serving ads locally use Drupal relative paths. If serving ads remotely include the 'http://' or 'https:/'. Use '&lt;front&gt;' to specify the front page. The '*' character is a wildcard. Example URLs are <em>blog</em> for the blog page and <em>blog/*</em> for every personal blog on your local website."), 1097 '#description' => t("Enter one URL per line. If serving ads locally use Drupal relative paths. If serving ads remotely include the 'http://' or 'https:/'. Use '&lt;front&gt;' to specify the front page. The '*' character is a wildcard. Example URLs are <em>blog</em> for the blog page and <em>blog/*</em> for every personal blog on your local website. When specifying local paths you must enter the raw path (ie 'node/123') and not the url alias (ie 'my/custom/path'), if any."),
1098 '#default_value' => $chid ? unserialize($channel->urls) : '', 1098 '#default_value' => $chid ? unserialize($channel->urls) : '',
1099 ); 1099 );
1100 1100
1101 // Group rules 1101 // Group rules
1102 $groups = taxonomy_get_tree(_ad_get_vid()); 1102 $groups = taxonomy_get_tree(_ad_get_vid());