I posted a question in this forum a few hours ago and it disappeared. Did someone delete it?

I want to know where I can find documentation on Drupal's distributed authorization system. Looking at the source code, it's not instaltly obvious where the login is called at all. Is there any documentation? Could someone give me the 3 sentence summary of how this works so I know where to look in the code?

I wish Drupal used .php for all files types (e.g. drupal.module.php and database.inc.php). Dreamweaver does not recognize the .module and .inc file types as PHP (no syntax color coding), and won't even search inside a file with the type .module - I have to use a separate grep utility.

Comments

Nick Lewis’s picture

Open dreamweaver, and
1. hit ctrl u (or to preferences under the edit menu)
2. In the preferences menu, go to "file types and editors"
3. Look for the "Open in code view" text-input thingy and add the following endings to their list
".module .inc .mysql .sql .inc "

4. Write a letter to macromedia that explains that you know what file you want to open -- and they don't -- and ask them to stop getting in the way of their user and you will burn their building down if they ever pop up that stupid, idiotic, and pointless "can't find a valid editor" bu!! $hit again. We need a development tool not a nanny that keeps us from opening up the wrong files in the wrong programs.

Note: No, I have no issues with this.

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com

permutations’s picture

I added the .module and .inc file types - was the first thing I tried. That lets Dreamweaver open the file, but with no PHP syntax color coding, which I find useful.

Also, despite the addition of the type, Dreamweaver still ignores .module files in site-wide searches. I spent about half an hour trying to figure out why, then decided not to waste my time on such idiocy and switched to a grep utility.

I like many things about Dreamweaver, but it's not perfect.

I'm reading the Drupal module development docs now, and this explains the integration method very well - very complete and well organized docs. I still wish someone would give me the short version of how the authentication code works flow-wise (just a paragraph or two to point me in the right direction), but if no one feels like taking the time I'll figure it out eventually by reading the code.

I like to understand how the program actually flows because sometimes hooks aren't in the right place or don't pass the right information for a particular thing you want to do, and you have to modify the core code itself. SMF has support for both types of modifications - a "mod" system for making changes to the core source code, and an integration system for adding what Drupal calls "hook functions" (and SMF calls "integration functions".

sepeck’s picture

There are no deleted entries listed in the logs so your post was not deleted. Perhaps not submitted? I don't own DreamWeaver anymore, I found Drupal instead.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

permutations’s picture

Dreamweaver is a code editor (among other things). Drupal does many things, but so far doesn't wash my dishes, and it doesn't provide an editor for syntax color coding of PHP files (that I know of).

sepeck’s picture

There are cheaper code editors for the Windows platform for those of us who don't code.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

permutations’s picture

Have you see PSPad? It's a great program, and much cheaper than Dreamweaver (it's free).

If I want to edit the flash-based chat on my site (plug-in to SMF), I need Macromedia Studio. Dreamweaver has a lot of nice features in one package - multiline search-and-replace (except that it won't work with .module files) that I can use to make site-wide changes, lots of other handy things.

(Still hoping someone will give me a one-paragraph overview of Drupal's authentication system flow....)

samcohen’s picture

Here's how I figured it out how to do it

http://www.sitepoint.com/article/customize-dreamweaver-needs

New Media Solutions
www.new-media-solutions.com

Greater Philadelphia Drupal Meetup
www.meetup.com/drupaldelphia

pbland’s picture

I've got Dreamweaver setup to do code coloring for modules and inc files, but when doing a folder search Dreamweaver wont search in these files. How to fix this?

---------------------------------------------------------------
My drupal site: Vacation-Places

marif321’s picture

I created a local site. My drupal code color is fine in dreamweaver, but whenever i do FIND AND REPLACE from current entire site, it dont search in .module files.

How can i enable search option for .module files

--
Muhammad Arif