diff options
author | Jeremy Trojan <jer@jerdiggity.com> | 2011-03-16 22:44:29 -0700 |
---|---|---|
committer | Jeremy Trojan <jer@jerdiggity.com> | 2011-03-16 22:44:29 -0700 |
commit | 48adbcdc150d7872d350ff5641a4942a0cdcd8c0 (patch) | |
tree | b177784c58045447f2f5d811d8d83a4a7a42b635 /fblikebutton.admin.inc | |
parent | d568753643fca4f94bc8722841a458c5133abf1a (diff) | |
download | fblikebutton-48adbcdc150d7872d350ff5641a4942a0cdcd8c0.tar.gz fblikebutton-48adbcdc150d7872d350ff5641a4942a0cdcd8c0.tar.bz2 |
Initial commit.
Diffstat (limited to 'fblikebutton.admin.inc')
-rw-r--r-- | fblikebutton.admin.inc | 29 |
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); +} |