You are here

function _tweet_node_types in Tweet 7.4

Same name and namespace in other branches
  1. 5.2 tweet.module \_tweet_node_types()
  2. 5 tweet.module \_tweet_node_types()
  3. 6.4 tweet.module \_tweet_node_types()
  4. 6 tweet.module \_tweet_node_types()
  5. 6.2 tweet.module \_tweet_node_types()
  6. 6.3 tweet.module \_tweet_node_types()

Helper function to provide node types in the format array(TYPE => TYPE).

3 calls to _tweet_node_types()
tweet_admin in ./tweet.admin.inc
Settings page.
tweet_admin_submit in ./tweet.admin.inc
Submit handler for tweet_admin().
tweet_node_view in ./tweet.module
Implements hook_node_view().

File

./tweet.module, line 365
Builds links to post pages to Twitter API sites.

Code

function _tweet_node_types() {
  $a = array_keys(node_type_get_types());
  $return = drupal_map_assoc($a);
  return $return;
}