Mercurial > defr > drupal > noderef_view
changeset 9:b942365b70eb
Change the Action label to be more descriptive and simplify the warning.
The code also pass the node title through theme('placeholder') to both ensure
that it's safe for display /and/ pretty print it, by default by wrapping it in
an <em />
author | Franck Deroche <franck@defr.org> |
---|---|
date | Tue, 27 Jan 2009 12:28:41 +0100 |
parents | 1f9c278126f9 |
children | 3fdd4dab8407 |
files | noderef_view.js noderef_view.module |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/noderef_view.js Tue Jan 27 11:55:21 2009 +0100 +++ b/noderef_view.js Tue Jan 27 12:28:41 2009 +0100 @@ -39,12 +39,12 @@ .attr('checked', 'checked') .length; if (count == 0) { - left.push(selection[nid]); + left.push(Drupal.theme('placeholder', selection[nid])); } } if (left.length) { - message = Drupal.t('No space left for value(s): @titles', - { '@titles': left.join(', ')}); + message = Drupal.t('No space left for: !titles', + { '!titles': left.join(', ')}); text = $('<br /><div>'+ message + '<div>') .css('display', 'inline') .addClass('warning')
--- a/noderef_view.module Tue Jan 27 11:55:21 2009 +0100 +++ b/noderef_view.module Tue Jan 27 12:28:41 2009 +0100 @@ -23,7 +23,7 @@ function noderef_view_action_info() { return array( 'noderef_view_select' => array( - 'description' => t('Select for later use'), + 'description' => t('Add selected values to field'), 'type' => 'node', 'configurable' => FALSE, 'hooks' => array(