summaryrefslogtreecommitdiff
path: root/modules/story
Commit message (Collapse)AuthorAge
* #56105, remove title validation, already enforced by #required, patch by MosheGerhard Killesreiter2006-03-27
|
* - Patch #49912: www.drupal.org -> drupal.org. (Today's critical bugfix #5.)Dries Buytaert2006-02-21
|
* - Patch #46827 by wulff: fixed incorrect links.Dries Buytaert2006-01-29
|
* - Patch #45530 by Morbus: filter_form shouldn't default to #weight 0Dries Buytaert2006-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a form element doesn't specify a #weight, it is assumed internally as #weight 0. However, to ensure that our form elements display visually *as they were defined in the array* we, in form_builder, count the number of elements, divide by 1000, and set that as the weight: # Assign a decimal placeholder weight to preserve original array order if (!isset($form[$key]['#weight'])) { $form[$key]['#weight'] = $count/1000; } The above code will set the #weights of elements that have not defined a weight to something like 0 (first element in array definition), 0.001, 0.002, and so on. However, anytime a form element *explicitly* defines a #weight of 0, that #weight is kept at exactly 0, which would cause that form element to appear BEFORE the elements that didn't have a #weight defined (and thus received a #weight such as 0.002). Consider the following pseudo example: $form['game_title'] = array( '#type' => 'textfield', ... ); $form['game_description'] = array( '#type' => 'textarea', ... ); $form['game_format'] = filter_form(variable_get('game_format', NULL)); return $form; Here, we're not definiing weights on our two textfields. We then add an filter_form. The second parameter of the filter_form is $weight, which defaults to 0. After this $form hits form_builder, we have weights 0 (game_title), 0.001 (game_description), and 0 (filter_form) respectively. This is then sorted by weight, which causes filter_form (the third element in the array) to appear BEFORE game_description (0 is lighter than 0.001). The short lesson is: explicitly defining #weight 0 for a form element is probably a bad idea. This patch changes the default #weight of filter_form to NULL, instead of 0, and also removes any other explicit setting of #weight to 0 in core.
* - Patch #45349 by Morbus Iff: input filters aren't sorting correctly ↵Dries Buytaert2006-01-19
| | | | infForms API.
* - Patch #45301 by Morbus: corrected the weight of form item titles of nodes.Dries Buytaert2006-01-18
|
* - Patch #34920 by Morbus/webchick/tangent: fixed order of form fields.Dries Buytaert2005-12-15
|
* - Patch #39778 by chx: obliterate nodeapi op form in favor of the forms ↵Dries Buytaert2005-12-05
| | | | API's way of doing things. Tested with help from webchick.
* - Patch #39612 by m3avrck: the log message should have its own fieldset.Dries Buytaert2005-12-02
|
* - Patch #35644 by webchick: fixed the sizes of the textareas on the node ↵Dries Buytaert2005-11-23
| | | | edit forms.
* - Patch #35644 by webchick: forms API simplificiations.Dries Buytaert2005-11-12
|
* #36791: node_validate was called twiceSteven Wittens2005-11-12
|
* - Patch #26139 by webchick / Kieran / documentation team: improved admin ↵Dries Buytaert2005-11-01
| | | | help of core modules! /
* - Patch #33752 by chx, adrian, et al: another batch of form API changes/fixes.Dries Buytaert2005-10-11
|
* - Patch #29465: new form API by Adrian et al.Dries Buytaert2005-10-07
| | | | | | | TODO: + The contact.module was broken; a new patch for contact.module is needed. + Documentation is needed. + The most important modules need to be updated ASAP.
* - Patch #10056: allow the node title forms to be customized.Dries Buytaert2005-09-23
|
* - Renamed _node() to _node_info()! We reserve _node for _nodeapi.Dries Buytaert2005-08-29
|
* - Patch #29785 by Chx: multiple node types were broken so we refactoredDries Buytaert2005-08-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | part of the node system! If you have a module that implements node types, you'll have to udpate its CVS HEAD version. We replaced _node_name() and _node_types() by _node(). The new _node() hook let's you define one or more node types, including their names. The implementation of the _node() hook needs to: return array($type1 => array('name' => $name1, 'base' => $base1), $type2 => array('name' => $name2, 'base' => $base2)); where $type is the node type, $name is the human readable name of the type and $base is used instead of <hook> for <hook>_load, <hook>_view, etc. For example, the story module's node hook looks like this: function story_node() { return array('story' => array('name' => t('story'), 'base' => 'story')); } The page module's node hook module like: function page_node() { return array('page' => array('name' => t('page'), 'base' => 'page')); } However, more complex node modules like the project module and the flexinode module can use the 'base' parameter to specify a different base. The project module implements two node types, proejcts and issues, so it can do: function project_node() { return array( array('project_project' => array('name' => t('project'), 'base' => 'project'), array('project_issue' => array('name' => t('issue'), 'base' => 'project_issue')); } In the flexinode module's case there can only one base ... This hook will simplify the CCK, and will make it easy (or easier) to merge the story and page module. In addition, node_list() became node_get_types(). In addition, we created the following functions: node_get_name($type) and node_get_base($type).
* - Patch #29385 by chx: no ?> add end of files.Dries Buytaert2005-08-25
|
* - Patch #19451 by JonBob: improved consistency of module descriptions. We ↵Dries Buytaert2005-04-01
| | | | should write guidelines for this -- maybe in the PHPDoc code of the _help hook.
* - Patch #16965 by Neil: removed some help text.Dries Buytaert2005-02-08
|
* - Patch #16192 by Neil: moved the submission guidelines found in forum, ↵Dries Buytaert2005-01-26
| | | | story, and blog and the minimum number of words found in story and blog (blog had a slight bug) into the node module.
* - Patch #15264 by Ber et al.: improved the story module's help text.Dries Buytaert2005-01-15
|
* - Refactored the queue module: removed the queue module's field from the ↵Dries Buytaert2004-12-07
| | | | | | | | | | node table. With help from Gerhard. - Slight addition to INSTALL.txt with regard to PHP versions. - Updated/reworded some node type descriptions as per Boris' suggestions. - Adding missing {} around a table name in update.php.
* - Patch #13828 by Moshe: tidied up the story module.Dries Buytaert2004-12-04
| | | | - Updated the help text a bit.
* - Patch by Stefan: wrapped the help texts in <p></p> tags. Helps improve ↵Dries Buytaert2004-11-23
| | | | consistency.
* - Patch #11879 by Moshe: deprecated the _content hook.Dries Buytaert2004-10-23
| | | | | | TODO: + Update Doxygen hook list (if required). + Document this in the developer's upgrade section.
* Modified version of #10230: Put placement of filter format selector in a ↵Steven Wittens2004-09-28
| | | | module's hands, and move it below the relevant textarea.
* - Patch #11045 by Stefan: improved consistency of node modules:Dries Buytaert2004-09-27
| | | | | | | + made the helptext under the 'Explanation or submission guidelines', more the same (blog & story); + made the form_set_error() texts consistent when the body of a blog/story does not match or exceeds the specified minimal numer of words. + used the $options for form_select() and form_radios() inline like we do in the rest of drupal; + made the textarea sizes for the submission pages the same for all node types and also for the 'Explanation or submission guidelines';
* - Patch #8179 by JonBob: reintroduced menu caching.Dries Buytaert2004-09-16
|
* - Patch by JonBob: for consistency and readability, add brief descriptions ↵Dries Buytaert2004-08-21
| | | | of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks.
* - Code improvements by Stefan: made all status messages consistent (and ↵Dries Buytaert2004-08-18
| | | | easier to translate).
* The Input formats - filter patch has landed. I still need to make update ↵Steven Wittens2004-08-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instructions for modules and update the hook docs. Here's an overview of the changes: 1) Multiple Input formats: they are complete filter configurations (what filters to use, in what order and with which settings). Input formats are admin-definable, and usage of them is role-dependant. For example, you can set it up so that regular users can only use limited HTML, while admins can free HTML without any tag limitations. The input format can be chosen per content item (nodes, comments, blocks, ...) when you add/edit them. If only a single format is available, there is no choice, and nothing changes with before. The default install (and the upgrade) contains a basic set of formats which should satisfy the average user's needs. 2) Filters have toggles Because now you might want to enable a filter only on some input formats, an explicit toggle is provided by the filter system. Modules do not need to worry about it and filters that still have their own on/off switch should get rid of it. 3) Multiple filters per module This was necessary to accomodate the next change, and it's also a logical extension of the filter system. 4) Embedded PHP is now a filter Thanks to the multiple input formats, I was able to move the 'embedded PHP' feature from block.module, page.module and book.module into a simple filter which executes PHP code. This filter is part of filter.module, and by default there is an input format 'PHP', restricted to the administrator only, which contains this filter. This change means that block.module now passes custom block contents through the filter system. As well as from reducing code duplication and avoiding two type selectors for page/book nodes, you can now combine PHP code with other filters. 5) User-supplied PHP code now requires <?php ?> tags. This is required for teasers to work with PHP code. Because PHP evaluation is now just another step in the filter process, we can't do this. Also, because teasers are generated before filtering, this would result in errors when the teaser generation would cut off a piece of PHP code. Also, regular PHP syntax explicitly includes the <?php ?> tags for PHP files, so it makes sense to use the same convention for embedded PHP in Drupal. 6) Filter caching was added. Benchmarking shows that even for a simple setup (basic html filtering + legacy URL rewriting), filtercache can offer speedups. Unlike the old filtercache, this uses the normal cache table. 7) Filtertips were moved from help into a hook_filter_tips(). This was required to accomodate the fact that there are multiple filters per module, and that filter settings are format dependant. Shoehorning filter tips into _help was ugly and silly. The display of the filter tips is done through the input format selector, so filter_tips_short() no longer exists. 8) A more intelligent linebreak convertor was added, which doesn't stop working if you use block-level tags and which adds <p> tags.
* - Patch #9543 by JonBob: added node-level access control!Dries Buytaert2004-07-31
|
* - Patch #8398 by TDobes: changed permissions for the blog, story, and page ↵Dries Buytaert2004-07-13
| | | | | | | | | modules (and all occurrances elsewhere) to match their 4.4.x equivalents. In the discussion when these permissions were introduced, it was decided that "edit own ..." was clearer, but "maintain personal ..." slipped into CVS HEAD anyway, while "edit own ..." landed in the 4.4.x branch. Changes are as follows: "maintain personal blog" -> "edit own blog" (aggregator.module, blog.module, blogapi.module) "maintain personal pages" -> "edit own pages" (page.module) "maintain personal stories" -> "edit own stories (story.module)
* - Marked required fields on the node (story, book, page, blog) and commentDries Buytaert2004-07-08
| | | | | | | | | forms using the $required argument of the form_ functions. - Replaced all Optional's and Required's from the taxonomy forms with proper use of the form_ functions. Please check your contributed modules too!
* - Patch by Steven and me: refactored the form handling of nodes. The node ↵Dries Buytaert2004-07-04
| | | | | | | | system is now using form_set_error() and friends like the rest of Drupal does. This makes for both a consistent user experience and consistent code. It simplifies the forms and validation code, however, it does change the node API slightly: * The _validate hook and the _nodeapi('validate') hook of the node API (1) no longer take an 'error' parameter and (2) should no longer return an error array. To set an error, call form_set_error(). * The _form hook of the node module no longer takes a form hook and should not worry about displaying errors. Ditto for _nodeapi('form_post') and _nodeapi('form_pre').
* - Patch #8681 by asimmonds: more help text updatesDries Buytaert2004-06-21
|
* Tabs patch!Dries Buytaert2004-06-18
| | | | | | | | | | | | | | | | | | CHANGES ------- + Introduced tabs. First, we extended the menu system to support tabs. Next, a tab was added for every link that was (1) an administrative action other than the implicit 'view' (2) relevant to that particular page only. This is illustrated by the fact that all tabs are verbs and that clicking a page's tab leads you to a subpage of that page. + Flattened the administration menu. The tabs helped simplify the navigation menu as I could separate 'actions' from 'navigation'. In addition, I removed the 'administer > configuration'-menu, renamed 'blocks' to 'sidebars' which I hope is a bit more descriptive, and made a couple more changes. Earlier, we already renamed 'taxonomy' to 'categorization' and we move 'statistics' under 'logs'. + Grouped settings. All settings have been grouped under 'administer > settings'. TODO ---- + Update core themes: only Xtemplate default supports tabs and even those look ugly. Need help. + Update contributed modules. The menu() hook changed drastically. Updating your code adhere the new menu() function should be 90% of the work. Moreover, ensure that your modue's admin links are still valid and that URLs to node get updated to the new scheme ('node/view/x' -> 'node/x').
* - Menu and code improvements by JonBob.Dries Buytaert2004-05-08
|
* - Added support for 403 handling. Patch by JonBob. As a side benefit,Dries Buytaert2004-04-21
| | | | | | | | administrators will be able to define a custom 403 page, just as they can define 404 pages now. This needs to be documented in the "Changes since / migrating to ..." pages.
* includes/theme.incDries Buytaert2004-03-15
|
* Patch 6270 by mathias: misc. fixesDries Buytaert2004-03-10
|
* - Patch 4332 by Goba: eliminate compose tips module.Dries Buytaert2004-01-27
|
* - Patch 5049 by JonBob: allow a module to define multiple node types.Dries Buytaert2004-01-27
|
* Patch 5287 by Stefan: multiline help texts should become inside a single ↵Dries Buytaert2004-01-23
| | | | $output.
* - Removed the $help parameter from the _form hook. The help, typicallyDries Buytaert2004-01-17
| | | | submission guidelines, should be emmitted using the _help hook.
* - Patch #5021: clean up URLs in _help texts. Patch by UnConeD.Dries Buytaert2004-01-11
|
* - Applied patch #4949: node_prepare() wastes resources. Patch by Goba.Dries Buytaert2004-01-11
|
* - Patch 4916: improved preparation of $node->teaser and $node->body. Patch byDries Buytaert2004-01-02
| | | | Goba.