You are here

function sweaver_drush_warning_text in Sweaver 6

Same name and namespace in other branches
  1. 7 drush/sweaver.drush.inc \sweaver_drush_warning_text()

Warning text.

Return value

$warning The warning text before editing a style.

1 call to sweaver_drush_warning_text()
sweaver_drush_edit_style in drush/sweaver.drush.inc
Edit a style.

File

drush/sweaver.drush.inc, line 482
Sweaver Drush functions.

Code

function sweaver_drush_warning_text() {
  $warning = '
/////////////////////////////
/// IMPORTANT, PLEASE READ //
/////////////////////////////

You are about to edit a style. This happens in a few steps. You
will get a confirmation question for each step available.
You can remove this warning by typing "drush swv warning false".

Step 1
------
Edit the general css which has been created by the style editor.
Due to the nature that the editor works, not all css properties are
valid, most regareding properties which can take multiple arguments like
margin, padding and border. For instance o do not use padding: 0 3 4 1, but
padding-x: 0; instead. You can always use the custom css of course where
you are free to enter what you like.

Step 2
------
Edit the custom css. You can edit this like a normal stylesheet.

Step 3
------
Edit the themesettings when the themesettings plugin is enabled.
Some values are booleans in the database. So: 0 = false, set to 1 to become true.
It will be presented like this. Do not remove the colons.
$key : $value

Step 4
------
Save the changes you have just performed. Editing a live style will immediately
affect the site for your visitors and will also overwrite the draft version of the style.

Type "y" to continue, "n" to abort.
';
  return dt($warning);
}