I need to generate a list of active node types for a site, and I'm not sure how to go about doing that. What I need is an array something like this: $ntypes = array('blog','forum','flexi','page','story') The end result would be a list of possible node types a person would be able to subscribe to using the Subscriptions module. Any ideas how I might be able to find out which nodes are available for subscription? -- Dan Ziemecki Philosopher. Curmudgeon. Nerd.
Check this http://api.drupal.org/api/HEAD/function/node_get_types On 5/7/06, Dan Ziemecki <dan@ziemecki.com> wrote:
I need to generate a list of active node types for a site, and I'm not sure how to go about doing that. What I need is an array something like this:
$ntypes = array('blog','forum','flexi','page','story')
The end result would be a list of possible node types a person would be able to subscribe to using the Subscriptions module.
Any ideas how I might be able to find out which nodes are available for subscription?
Jeez. Here I was thinking I had a special need. There must be an API for everything. Looking for drupal_wash_my_car() .... Thanks, Khalid, -- Dan Ziemecki Philosopher. Curmudgeon. Nerd. On 5/7/06, Khalid B <kb@2bits.com> wrote:
Check this http://api.drupal.org/api/HEAD/function/node_get_types
On 5/7/06, Dan Ziemecki <dan@ziemecki.com> wrote:
I need to generate a list of active node types for a site, and I'm not sure how to go about doing that. What I need is an array something like this:
$ntypes = array('blog','forum','flexi','page','story')
The end result would be a list of possible node types a person would be able to subscribe to using the Subscriptions module.
Any ideas how I might be able to find out which nodes are available for subscription?
Oh, on 4.6 it is http://api.drupal.org/api/4.6/function/node_list And what you want is available at: http://api.drupal.org/api/HEAD/function/drupal_touchless_car_wash On 5/7/06, Dan Ziemecki <dan@ziemecki.com> wrote:
Jeez. Here I was thinking I had a special need. There must be an API for everything. Looking for drupal_wash_my_car() ....
Thanks, Khalid,
On 5/7/06, Khalid B <kb@2bits.com> wrote:
Check this http://api.drupal.org/api/HEAD/function/node_get_types
On 5/7/06, Dan Ziemecki <dan@ziemecki.com > wrote:
I need to generate a list of active node types for a site, and I'm not sure how to go about doing that. What I need is an array something like this:
$ntypes = array('blog','forum','flexi','page','story')
The end result would be a list of possible node types a person would be able to subscribe to using the Subscriptions module.
Any ideas how I might be able to find out which nodes are available for subscription?
participants (2)
-
Dan Ziemecki -
Khalid B