/[drupal]/contributions/modules/blog_reactions/blog_reactions.admin.inc
ViewVC logotype

Contents of /contributions/modules/blog_reactions/blog_reactions.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (show annotations) (download) (as text)
Mon Oct 6 18:58:46 2008 UTC (13 months, 3 weeks ago) by sanduhrs
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +9 -2 lines
File MIME type: text/x-php
#291049 by bjacob:  Use hook_cron instead of hook_exit.
1 <?php
2 /* $Id: blog_reactions.admin.inc,v 1.8 2008/07/30 10:02:34 sanduhrs Exp $ */
3
4 /**
5 * Blog reactions
6 *
7 * Fetch blog reactions from Technorati and Google Blog Search
8 *
9 * @author Stefan Auditor <stefan.auditor@erdfisch.de>
10 */
11
12 /**
13 * Administration settings page
14 */
15 function blog_reactions_admin_settings() {
16 $form['blog_reactions_node_types'] = array(
17 '#type' => 'select',
18 '#title' => t('Node types'),
19 '#options' => node_get_types('names'),
20 '#default_value' => variable_get('blog_reactions_node_types', array('blog')),
21 '#multiple' => TRUE,
22 '#description' => t('Choose the node type(s) that should fetch blog reactions.'),
23 );
24 $form['blog_reactions_services'] = array(
25 '#type' => 'checkboxes',
26 '#title' => t('Services'),
27 '#options' => array(
28 'technorati' => t('Technorati'),
29 'blogsearch' => t('Google Blogsearch'),
30 'bloglines' => t('Yahoo! Bloglines'),
31 ),
32 '#default_value' => variable_get('blog_reactions_services', array('technorati', 'blogsearch', 'bloglines')),
33 '#description' => t('Choose the services that should be queried.'),
34 );
35 $form['blog_reactions_node_display'] = array(
36 '#title' => t('Display the reactions underneath the node'),
37 '#type' => 'checkbox',
38 '#default_value' => variable_get('blog_reactions_node_display', FALSE),
39 );
40 $form['blog_reactions_quantity'] = array(
41 '#type' => 'select',
42 '#title' => t('Quantity'),
43 '#options' => drupal_map_assoc(array(0,1,2,3,4,5,10,20,30,40,50,75,100)),
44 '#default_value' => variable_get('blog_reactions_quantity', 0),
45 '#description' => t('Choose the quantity of links, that should be displayed. Choose 0 for no limit.'),
46 );
47 $form['blog_reactions_cron_quantity'] = array(
48 '#type' => 'select',
49 '#title' => t('Cron'),
50 '#options' => drupal_map_assoc(array(5,10,20,30,40,50,75,100)),
51 '#default_value' => variable_get('blog_reactions_cron_quantity', 20),
52 '#description' => t('Choose the number of nodes wich will be updated per cron run. Default is 20.'),
53 );
54 return system_settings_form($form);
55 }

  ViewVC Help
Powered by ViewVC 1.1.2