diff --git a/plugins/content_types/node_context/node_content.inc b/plugins/content_types/node_context/node_content.inc index 2aec36f9b9de7aaf541306a8d3ebab496603a137..a394de5a16012ddc37190c9c7b8d89d62f03b2eb 100644 --- a/plugins/content_types/node_context/node_content.inc +++ b/plugins/content_types/node_context/node_content.inc @@ -5,7 +5,7 @@ * Callback function to supply a list of content types. */ function ctools_node_content_ctools_content_types() { - $items['node_content'] = array( + return array( 'single' => TRUE, 'title' => t('Node content'), 'icon' => 'icon_node.png', @@ -24,7 +24,6 @@ function ctools_node_content_ctools_content_types() { 'leave_node_title' => FALSE, ), ); - return $items; } /** diff --git a/plugins/content_types/term_context/term_list.inc b/plugins/content_types/term_context/term_list.inc index f45ebaaacb83e4738fdd11d0f2bcf7f666e67ab3..4cd8dd15955d2e293bc69ad571faae19813b8e88 100644 --- a/plugins/content_types/term_context/term_list.inc +++ b/plugins/content_types/term_context/term_list.inc @@ -14,7 +14,6 @@ function panels_term_list_panels_content_types() { 'category' => t('Taxonomy term'), 'defaults' => array('title' => '', 'type' => 'child', 'list_type' => 'ul'), ); - return $items; } function ctools_term_list_content_type_render($subtype, $conf, $panel_args, $context) { diff --git a/plugins/content_types/user_context/profile_fields.inc b/plugins/content_types/user_context/profile_fields.inc index 31facf8b4686ff82565c8bb781695eeea0c221ca..5e0091a8766a011fe877996b5f35af1981499966 100644 --- a/plugins/content_types/user_context/profile_fields.inc +++ b/plugins/content_types/user_context/profile_fields.inc @@ -7,7 +7,7 @@ */ function panels_profile_fields_panels_content_types() { if (module_exists('profile') && !is_null(profile_categories())) { - $items['profile_fields'] = array( + return array( 'single' => TRUE, 'title' => t('Profile category'), 'icon' => 'icon_user.png', @@ -17,7 +17,6 @@ function panels_profile_fields_panels_content_types() { 'defaults' => array('title' => '', 'category' => '', 'empty' => ''), 'hook theme' => 'ctools_profile_fields_content_type_theme', ); - return $items; } } diff --git a/plugins/content_types/user_context/user_picture.inc b/plugins/content_types/user_context/user_picture.inc index e5a0d4bdff39d615858182e04b1ab011e4e1f68e..0298485fd657071101e96faf8d6dc76c931d7d1c 100644 --- a/plugins/content_types/user_context/user_picture.inc +++ b/plugins/content_types/user_context/user_picture.inc @@ -13,7 +13,6 @@ function ctools_user_picture_ctools_content_types() { 'required context' => new ctools_context_required(t('User'), 'user'), 'category' => t('User'), ); - return $items; } function ctools_user_picture_content_type_render($subtype, $conf, $panel_args, $context) { diff --git a/plugins/content_types/user_context/user_profile.inc b/plugins/content_types/user_context/user_profile.inc index c15c3a8f35b580a7db306cfd867eb5699f931033..790448018bf53b8121b832b66a5a536ab11b9335 100644 --- a/plugins/content_types/user_context/user_profile.inc +++ b/plugins/content_types/user_context/user_profile.inc @@ -13,7 +13,6 @@ function ctools_user_profile_ctools_content_types() { 'required context' => new ctools_context_required(t('User'), 'user'), 'category' => t('User'), ); - return $items; } function ctools_user_profile_content_type_render($subtype, $conf, $panel_args, $context) { diff --git a/plugins/content_types/vocabulary_context/vocabulary_terms.inc b/plugins/content_types/vocabulary_context/vocabulary_terms.inc index 13b152a0c66eaf0c1fb278a1326284055eb6cd71..79897efc80eb774dc7e118d9a4ce141862a25357 100644 --- a/plugins/content_types/vocabulary_context/vocabulary_terms.inc +++ b/plugins/content_types/vocabulary_context/vocabulary_terms.inc @@ -15,7 +15,6 @@ function ctools_vocabulary_terms_ctools_content_types() { 'category' => t('Vocabulary'), 'defaults' => array('max_depth' => 0, 'tree' => 1), ); - return $items; } }