You are here

public static function ShareaholicUtilities::page_types in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same name and namespace in other branches
  1. 7.3 utilities.php \ShareaholicUtilities::page_types()

Get all the available page types Insert the teaser mode as a page type

Return value

Array list of page types

7 calls to ShareaholicUtilities::page_types()
ShareaholicUtilities::get_default_rec_off_locations in ./utilities.php
Get recommendations locations that should be turned off by default
ShareaholicUtilities::get_default_rec_on_locations in ./utilities.php
Get recommendations locations that should be turned on by default
ShareaholicUtilities::get_default_sb_off_locations in ./utilities.php
Get share buttons locations that should be turned off by default
ShareaholicUtilities::get_default_sb_on_locations in ./utilities.php
Get share buttons locations that should be turned on by default
ShareaholicUtilities::get_or_create_api_key in ./utilities.php
Returns the api key or creates a new one.

... See full list

File

./utilities.php, line 634

Class

ShareaholicUtilities

Code

public static function page_types() {
  $page_types = node_type_get_types();
  $teaser = new stdClass();
  $teaser->name = 'Teaser';
  $teaser->type = 'teaser';
  $page_types['shareaholic_custom_type'] = $teaser;
  return $page_types;
}