aboutsummaryrefslogtreecommitdiff
path: root/fblikebutton.admin.inc
diff options
context:
space:
mode:
Diffstat (limited to 'fblikebutton.admin.inc')
-rw-r--r--fblikebutton.admin.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/fblikebutton.admin.inc b/fblikebutton.admin.inc
new file mode 100644
index 0000000..a11e682
--- /dev/null
+++ b/fblikebutton.admin.inc
@@ -0,0 +1,29 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Admin functions for fblikebutton.
+ */
+
+/**
+ * Configure which node types can be "liked" by users.
+ */
+function fblikebutton_admin_settings() {
+ $fblikebutton_node_options = node_get_types('names');
+ $form['fblikebutton_node_types'] = array(
+ '#type' => 'checkboxes',
+ '#title' => t('Display the Like button on these content types'),
+ '#options' => $fblikebutton_node_options,
+ '#default_value' => variable_get('fblikebutton_node_types', array('page')),
+ '#description' => t('Each of these content types will have the "like" button automatically added to them.'),
+ );/**
+ $form['fblikebutton_show_faces'] = array(
+ '#type' => 'radios',
+ '#title' => t('Display faces in the Like box'),
+ '#options' => array('true' => t('Show faces'), 'false' => t('Do not show faces'))
+ '#default_value' => variable_get('fblikebutton_show_faces', array('true')),
+ '#description' => t('Should users see the faces of other people who have "liked" the same content?'),
+ ); */
+ return system_settings_form($form);
+}