You are here

function _fb_tab_get_app_config in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_tab.module \_fb_tab_get_app_config()

Helper returns configuration for this module, on a per-app basis.

4 calls to _fb_tab_get_app_config()
fb_tab_admin_form_alter in ./fb_tab.admin.inc
See fb_tab_form_alter.
fb_tab_custom_theme in ./fb_tab.module
fb_tab_fb in ./fb_tab.module
Implements hook_fb
fb_tab_fb_admin in ./fb_tab.admin.inc
Implements hook_fb_admin().

File

./fb_tab.module, line 299
This module provides support for "Profile Tabs" that can be added to facebook pages (no longer allowed for user profiles).

Code

function _fb_tab_get_app_config($fb_app) {
  $fb_app_data = fb_get_app_data($fb_app);
  $config = isset($fb_app_data['fb_tab']) ? $fb_app_data['fb_tab'] : array();

  // Merge in defaults
  $config += array(
    'custom_theme' => NULL,
    'tab_default_name' => isset($fb_app->title) ? $fb_app->title : NULL,
    'profile_tab_url' => NULL,
    'profile_tab_url_liked' => NULL,
    'app_data_is_path' => TRUE,
    'edit_url' => FB_TAB_PATH_FORM,
  );
  return $config;
}